mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-13 19:45:26 +00:00
add cache-control:immutable for immutable assets
This commit is contained in:
@@ -151,7 +151,7 @@ export default function middleware(opts: {
|
||||
|
||||
serve({
|
||||
prefix: '/client/',
|
||||
cache_control: dev() ? 'no-cache' : 'max-age=31536000'
|
||||
cache_control: dev() ? 'no-cache' : 'max-age=31536000, immutable'
|
||||
}),
|
||||
|
||||
get_server_route_handler(manifest.server_routes),
|
||||
|
||||
Reference in New Issue
Block a user