Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
add Cache-Control headers to tracking script
Michael Payne88b0e62d0bd2
diff --git a/next.config.js b/next.config.jsindex b610eb2c8..50ce67f89 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() {