From 47c799ba7a2fd1a311c1490c8bc129756948da07 Mon Sep 17 00:00:00 2001
From: ericj <eric.jaekel@web.de>
Date: Sat, 7 Sep 2024 18:31:05 +0200
Subject: [PATCH] fix cors caching problem

---
 src/utils/apiAdapter.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/utils/apiAdapter.ts b/src/utils/apiAdapter.ts
index 2cd4b27..d2dc223 100644
--- a/src/utils/apiAdapter.ts
+++ b/src/utils/apiAdapter.ts
@@ -4,7 +4,7 @@ import {setupCache} from 'axios-cache-interceptor';
 import {RecipeResponseType} from "../types/RecipeResponseType.ts";
 
 const axiosInstance = Axios.create();
-const axiosCached = setupCache(axiosInstance);
+const axiosCached = setupCache(axiosInstance, {cacheTakeover: false});
 
 const parseRecipeResponse = (recipeData: RecipeResponseType) => {
     const ingredients = Array.from({length: 20}, (_, i) => ({
-- 
GitLab