From 97c540bccab2fb5e7de93b02cea767d9cbf9a277 Mon Sep 17 00:00:00 2001 From: swve Date: Fri, 12 May 2023 18:26:18 +0000 Subject: [PATCH] feat: use cache no store on requests --- front/services/utils/ts/requests.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/front/services/utils/ts/requests.ts b/front/services/utils/ts/requests.ts index 253675b5..3df81e89 100644 --- a/front/services/utils/ts/requests.ts +++ b/front/services/utils/ts/requests.ts @@ -9,9 +9,7 @@ export const RequestBody = (method: string, data: any) => { redirect: "follow", credentials: "include", // Next.js - next: { - revalidate: 1, - }, + cache: 'no-store' }; if (data) { options.body = JSON.stringify(data);