Merge pull request #271 from fransallen/master

Implement Cache-Control header for umami.js
This commit is contained in:
Mike Cao 2020-10-07 08:29:31 -07:00 committed by GitHub
commit e2b2238fb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
},
],
},
]
},
};