From 6fc641a8d4e95e9b33b566b5b54c64c78b572c3a Mon Sep 17 00:00:00 2001 From: Tyler Date: Wed, 17 Jun 2026 14:35:07 -0600 Subject: [PATCH] feat(pwa): add cache headers for static assets --- next.config.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/next.config.ts b/next.config.ts index 83800d6..79aca3c 100644 --- a/next.config.ts +++ b/next.config.ts @@ -86,6 +86,24 @@ const nextConfig: NextConfig = { }, ], }, + { + source: "/_next/static/:path*", + headers: [ + { key: "Cache-Control", value: "public, max-age=31536000, immutable" }, + ], + }, + { + source: "/icons/:path*", + headers: [ + { key: "Cache-Control", value: "public, max-age=31536000, immutable" }, + ], + }, + { + source: "/screenshots/:path*", + headers: [ + { key: "Cache-Control", value: "public, max-age=604800" }, + ], + }, ]; },