fix: disable aggressive caching for dashboard HTML pages

This commit is contained in:
2026-02-17 08:34:53 -05:00
parent d56f299698
commit 152ff4a3ad

View File

@@ -4,6 +4,20 @@ const nextConfig = {
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;