From ea3614f9b75dc663bc3821edb4db0b0b89951f79 Mon Sep 17 00:00:00 2001 From: Michael Zetterberg Date: Thu, 14 Mar 2024 16:46:11 +0100 Subject: [PATCH] feat(WEB-129): disable fetch cache for CurrentWeb pages --- app/[lang]/(live-current)/layout.tsx | 2 ++ app/[lang]/(preview-current)/layout.tsx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/[lang]/(live-current)/layout.tsx b/app/[lang]/(live-current)/layout.tsx index 2450b0da6..e7c16db60 100644 --- a/app/[lang]/(live-current)/layout.tsx +++ b/app/[lang]/(live-current)/layout.tsx @@ -10,6 +10,8 @@ import type { Metadata } from "next" import type { LangParams, LayoutArgs } from "@/types/params" import VwoScript from "@/components/Current/VwoScript" +export const fetchCache = "default-no-store" + export const metadata: Metadata = { description: "New web", title: "Scandic Hotels New Web", diff --git a/app/[lang]/(preview-current)/layout.tsx b/app/[lang]/(preview-current)/layout.tsx index b05b3f467..deffcb44b 100644 --- a/app/[lang]/(preview-current)/layout.tsx +++ b/app/[lang]/(preview-current)/layout.tsx @@ -7,6 +7,8 @@ import InitLivePreview from "@/components/Current/LivePreview" import type { Metadata } from "next" import type { LangParams, LayoutArgs } from "@/types/params" +export const fetchCache = "default-no-store" + export const metadata: Metadata = { description: "New web", title: "Scandic Hotels New Web",