mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Add Cache-Control header to api responses
This commit is contained in:
parent
e1a5a610bb
commit
edaa30f7b1
2 changed files with 10 additions and 5 deletions
|
|
@ -9,6 +9,7 @@ const apiHeaders = {
|
|||
'Access-Control-Allow-Headers': '*',
|
||||
'Access-Control-Allow-Methods': 'GET, DELETE, POST, PUT',
|
||||
'Access-Control-Max-Age': process.env.CORS_MAX_AGE || '86400',
|
||||
'Cache-Control': 'no-cache',
|
||||
};
|
||||
|
||||
const trackerHeaders = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue