From 8533f20eb8f550c35c2a6f2303f7a364aedc4cb2 Mon Sep 17 00:00:00 2001 From: HACO Date: Sat, 21 Dec 2024 07:49:24 +0800 Subject: [PATCH] fix: trying to fix cache problem --- next.config.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/next.config.js b/next.config.js index b936b10..f9d981e 100644 --- a/next.config.js +++ b/next.config.js @@ -15,6 +15,19 @@ const nextConfig = { }, ], }, + async headers() { + return [ + { + source: "/(.*)", + headers: [ + { + key: "Cache-Control", + value: "no-cache, no-store, must-revalidate", + }, + ], + }, + ]; + }, webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => { if (!isServer) { config.output.filename = "static/chunks/[name].js";