From 3a3676bc8232376553108dc4f27b5211c24c63e3 Mon Sep 17 00:00:00 2001 From: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> Date: Tue, 11 Jun 2024 17:18:52 +0200 Subject: [PATCH] fix(server): cache-control header missing from / requests (#10131) * fix(server): cache-control header missing from / requests * disable extension fallback --- server/src/workers/api.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/workers/api.ts b/server/src/workers/api.ts index dae0f83e86..30d440240f 100644 --- a/server/src/workers/api.ts +++ b/server/src/workers/api.ts @@ -46,6 +46,7 @@ async function bootstrap() { etag: true, gzip: true, brotli: true, + extensions: [], setHeaders: (res, pathname) => { if (pathname.startsWith(`/_app/immutable`) && res.statusCode === 200) { res.setHeader('cache-control', 'public,max-age=31536000,immutable');