diff --git a/next.config.js b/next.config.js index 9d7d8e99..e98c091c 100644 --- a/next.config.js +++ b/next.config.js @@ -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 + }, + ], + }, + ] + }, };