diff --git a/nitroSWPreset.ts b/nitroSWPreset.ts index 5dfebdf..9e6b563 100644 --- a/nitroSWPreset.ts +++ b/nitroSWPreset.ts @@ -445,8 +445,8 @@ export function createNitroSWPreset(config: SWPresetConfig): NitroConfig { getCacheControl: (filename: string): string => filename.startsWith("_nuxt/") && filename !== "_nuxt/builds/latest.json" - ? "public, immutable, max-age=31536000, no-transform" - : "public, max-age=30, no-transform", + ? "public, immutable, max-age=31536000" + : "public, max-age=30", getContentType: (filename: string): string => contentType(path.extname(filename)) || "application/octet-stream", shouldIncludeAssetInArchive: ( diff --git a/public/_headers b/public/_headers index fb4811a..d5f4e2b 100644 --- a/public/_headers +++ b/public/_headers @@ -2,7 +2,7 @@ https://:project.pages.dev/* X-Robots-Tag: noindex /* - Cache-Control: public, max-age=300, no-transform, stale-while-revalidate=86400, stale-if-error=604800 + Cache-Control: public, max-age=300, stale-while-revalidate=86400, stale-if-error=604800 Content-Security-Policy: __CSP_DIRECTIVES_HEADER__ Permissions-Policy: camera=(), document-domain=(), geolocation=(), interest-cohort=(), microphone=() # https://api.nature.global/ is omitted for default Link header, as it may differ by page @@ -11,27 +11,27 @@ https://:project.pages.dev/* /sw.js ! Cache-Control ! Link - Cache-Control: public, max-age=30, no-transform + Cache-Control: public, max-age=30 /server.* ! Cache-Control ! Link - Cache-Control: public, immutable, max-age=31536000, no-transform + Cache-Control: public, immutable, max-age=31536000 /assets.* ! Cache-Control ! Link - Cache-Control: public, immutable, max-age=31536000, no-transform + Cache-Control: public, immutable, max-age=31536000 /_nuxt/* ! Cache-Control ! Link - Cache-Control: public, immutable, max-age=31536000, no-transform + Cache-Control: public, immutable, max-age=31536000 /_nuxt/builds/latest.json ! Cache-Control ! Link - Cache-Control: public, max-age=30, no-transform + Cache-Control: public, max-age=30 /favicon.* ! Link