chore(pwa): get rid of public headers requests (#2477)

This commit is contained in:
Huang Xin
2025-11-19 18:01:21 +05:30
committed by GitHub
parent 26d76e27ac
commit e987c8b37a
2 changed files with 10 additions and 2 deletions
+10
View File
@@ -50,6 +50,15 @@ const nextConfig = {
},
],
},
{
source: '/_next/static/:path*',
headers: [
{
key: 'Cache-Control',
value: 'public, max-age=31536000, immutable',
},
],
},
];
},
};
@@ -57,6 +66,7 @@ const nextConfig = {
const withPWA = withPWAInit({
dest: 'public',
disable: isDev || appPlatform !== 'web',
buildExcludes: [/\/_headers$/],
cacheOnFrontEndNav: true,
aggressiveFrontEndNavCaching: true,
reloadOnOnline: true,
-2
View File
@@ -1,2 +0,0 @@
/_next/static/*
Cache-Control: public,max-age=31536000,immutable