feat(pwa): add cache headers for static assets

This commit is contained in:
Tyler
2026-06-17 14:35:07 -06:00
parent dd545c00d6
commit 6fc641a8d4
+18
View File
@@ -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" },
],
},
];
},