add Cache-Control headers to tracking script

This commit is contained in:
Michael Payne
2024-11-08 18:02:25 -06:00
parent cb790fd466
commit 88b0e62d0b
+10
View File
@@ -158,6 +158,16 @@ const config = {
source: '/:path*',
headers,
},
{
source: '/script.js',
headers: [
...headers,
{
key: 'Cache-Control',
value: 'public, max-age=86400, must-revalidate',
},
],
},
];
},
async rewrites() {