From 88b0e62d0bd226b8c983ba428c6d676c586ddae9 Mon Sep 17 00:00:00 2001 From: Michael Payne <10254938+michaelpayne02@users.noreply.github.com> Date: Fri, 8 Nov 2024 17:38:33 -0600 Subject: [PATCH] add Cache-Control headers to tracking script --- next.config.js | 10 ++++++++++ 1 file changed, 10 insertions(+) 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() {