mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-05 17:05:46 +01:00
Merge pull request #3046 from michaelpayne02/master
add Cache-Control headers to tracking script
This commit is contained in:
commit
327b2c81cf
@ -189,7 +189,22 @@ const config = {
|
|||||||
return config;
|
return config;
|
||||||
},
|
},
|
||||||
async headers() {
|
async headers() {
|
||||||
return headers;
|
return [
|
||||||
|
{
|
||||||
|
source: '/:path*',
|
||||||
|
headers,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
source: '/script.js',
|
||||||
|
headers: [
|
||||||
|
...headers,
|
||||||
|
{
|
||||||
|
key: 'Cache-Control',
|
||||||
|
value: 'public, max-age=86400, must-revalidate',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
];
|
||||||
},
|
},
|
||||||
async rewrites() {
|
async rewrites() {
|
||||||
return [
|
return [
|
||||||
|
Loading…
Reference in New Issue
Block a user