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

Commit

Permalink
Merge pull request #425 from nolanlawson/cache-control-immutable
Browse files Browse the repository at this point in the history
Add cache-control:immutable for immutable assets
  • Loading branch information
Rich-Harris authored Sep 7, 2018
2 parents 68b78f5 + 68e93a8 commit 9ea5e5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 9ea5e5e

Please sign in to comment.