mirror of
https://github.com/zhigang1992/umami.git
synced 2026-01-12 22:53:19 +08:00
Merge pull request #271 from fransallen/master
Implement Cache-Control header for umami.js
This commit is contained in:
@@ -17,4 +17,17 @@ module.exports = {
|
||||
|
||||
return config;
|
||||
},
|
||||
async headers() {
|
||||
return [
|
||||
{
|
||||
source: '/umami.js',
|
||||
headers: [
|
||||
{
|
||||
key: 'Cache-Control',
|
||||
value: 'public, max-age=2592000', // 30 days
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user