Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 65f996a

Browse files
committed
Cache client files in dev mode too
1 parent 857a3e7 commit 65f996a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/src/server/middleware/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default function middleware(opts: {
5858

5959
serve({
6060
prefix: '/client/',
61-
cache_control: dev ? 'no-cache' : 'max-age=31536000, immutable'
61+
cache_control: max-age=31536000, immutable'
6262
}),
6363

6464
get_server_route_handler(manifest.server_routes),

0 commit comments

Comments
 (0)