From 476dd22cdcfdaaa9529e2261dc7d31fa051a829b Mon Sep 17 00:00:00 2001 From: Roar Skinderviken Date: Tue, 10 Dec 2024 02:52:23 +0100 Subject: [PATCH] Disabling caching for /user/dashboard --- next-app/next.config.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/next-app/next.config.ts b/next-app/next.config.ts index 9846d880..18ece627 100644 --- a/next-app/next.config.ts +++ b/next-app/next.config.ts @@ -49,6 +49,15 @@ const nextConfig: NextConfig = { }, ], }, + { + source: "/user/dashboard", + headers: [ + { + key: "Cache-Control", + value: "no-store, max-age=0" + }, + ], + }, ] }, async redirects() {