mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-05 17:05:46 +01:00
add Cache-Control headers to tracking script
This commit is contained in:
parent
cb790fd466
commit
88b0e62d0b
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user