update `Cache-Control` for tracker script

pull/1450/head
rohandebsarkar 2022-08-22 18:22:11 +05:30
parent 0f976be5d8
commit a4fe656ca9
No known key found for this signature in database
GPG Key ID: 3DA3229799D1A181
1 changed files with 10 additions and 0 deletions

View File

@ -57,6 +57,16 @@ module.exports = {
source: '/:path*', source: '/:path*',
headers, headers,
}, },
{
source: '/umami.js',
headers: [
...headers,
{
key: 'Cache-Control',
value: 'public, max-age=86400',
},
],
},
]; ];
}, },
async rewrites() { async rewrites() {