mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +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*',
|
source: '/:path*',
|
||||||
headers,
|
headers,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
source: '/script.js',
|
||||||
|
headers: [
|
||||||
|
...headers,
|
||||||
|
{
|
||||||
|
key: 'Cache-Control',
|
||||||
|
value: 'public, max-age=86400, must-revalidate',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
async rewrites() {
|
async rewrites() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue