mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
add Cache-Control headers to tracking script
This commit is contained in:
parent
cb790fd466
commit
88b0e62d0b
1 changed files with 10 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue