diff --git a/next.config.js b/next.config.js index b610eb2c..50ce67f8 100644 --- a/next.config.js +++ b/next.config.js @@ -158,6 +158,16 @@ const config = { source: '/:path*', headers, }, + { + source: '/script.js', + headers: [ + ...headers, + { + key: 'Cache-Control', + value: 'public, max-age=86400, must-revalidate', + }, + ], + }, ]; }, async rewrites() {