From 68e93a8fa06998fe14ba4159dc9f3cef7e5529d0 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Fri, 7 Sep 2018 11:07:50 -0700 Subject: [PATCH] add cache-control:immutable for immutable assets --- src/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware.ts b/src/middleware.ts index 15b4bbfab..bab65364f 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -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),