mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Fixed headers.
This commit is contained in:
parent
8dc4ffe1a5
commit
fb0ff247a8
1 changed files with 5 additions and 16 deletions
|
|
@ -53,6 +53,10 @@ const trackerHeaders = [
|
||||||
key: 'Access-Control-Allow-Origin',
|
key: 'Access-Control-Allow-Origin',
|
||||||
value: '*',
|
value: '*',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
key: 'Cache-Control',
|
||||||
|
value: 'public, max-age=86400, must-revalidate',
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const headers = [
|
const headers = [
|
||||||
|
|
@ -189,22 +193,7 @@ const config = {
|
||||||
return config;
|
return config;
|
||||||
},
|
},
|
||||||
async headers() {
|
async headers() {
|
||||||
return [
|
return headers;
|
||||||
{
|
|
||||||
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…
Add table
Add a link
Reference in a new issue