From 152ff4a3add7a967ad23d0c98d82c9ab06f27383 Mon Sep 17 00:00:00 2001 From: mblanke Date: Tue, 17 Feb 2026 08:34:53 -0500 Subject: [PATCH] fix: disable aggressive caching for dashboard HTML pages --- next.config.js | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/next.config.js b/next.config.js index 290f9e7..c07f060 100644 --- a/next.config.js +++ b/next.config.js @@ -1,9 +1,23 @@ -/** @type {import('next').NextConfig} */ -const nextConfig = { - output: "standalone", - images: { - unoptimized: true, - }, -}; - -module.exports = nextConfig; +/** @type {import('next').NextConfig} */ +const nextConfig = { + output: "standalone", + images: { + unoptimized: true, + }, + async headers() { + return [ + { + // Don't aggressively cache HTML pages - this is a dynamic dashboard + source: "/((?!_next/static|_next/image|favicon.ico).*)", + headers: [ + { + key: "Cache-Control", + value: "no-cache, no-store, must-revalidate", + }, + ], + }, + ]; + }, +}; + +module.exports = nextConfig;