Merge pull request #3046 from michaelpayne02/master

add Cache-Control headers to tracking script
This commit is contained in:
Mike Cao 2024-11-18 13:26:03 -08:00 committed by GitHub
commit 327b2c81cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -189,7 +189,22 @@ const config = {
return config; return config;
}, },
async headers() { async headers() {
return headers; return [
{
source: '/:path*',
headers,
},
{
source: '/script.js',
headers: [
...headers,
{
key: 'Cache-Control',
value: 'public, max-age=86400, must-revalidate',
},
],
},
];
}, },
async rewrites() { async rewrites() {
return [ return [