mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Implement Cache-Control header for umami.js
This commit is contained in:
parent
82b41f9327
commit
cc612cb831
1 changed files with 13 additions and 0 deletions
|
|
@ -19,4 +19,17 @@ module.exports = {
|
|||
|
||||
return config;
|
||||
},
|
||||
async headers() {
|
||||
return [
|
||||
{
|
||||
source: '/umami.js',
|
||||
headers: [
|
||||
{
|
||||
key: 'Cache-Control',
|
||||
value: 'public, max-age=2592000', // 30 days
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue