add Cache-Control headers to tracking script

This commit is contained in:
Michael Payne 2024-11-08 17:38:33 -06:00
parent cb790fd466
commit 88b0e62d0b

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() {