diff --git a/web/src/helpers/api.js b/web/src/helpers/api.js index 67f3e3c4..635d63b8 100644 --- a/web/src/helpers/api.js +++ b/web/src/helpers/api.js @@ -6,7 +6,8 @@ export let API = axios.create({ ? import.meta.env.VITE_REACT_APP_SERVER_URL : '', headers: { - 'New-API-User': getUserIdFromLocalStorage() + 'New-API-User': getUserIdFromLocalStorage(), + 'Cache-Control': 'no-store' } }); @@ -16,7 +17,8 @@ export function updateAPI() { ? import.meta.env.VITE_REACT_APP_SERVER_URL : '', headers: { - 'New-API-User': getUserIdFromLocalStorage() + 'New-API-User': getUserIdFromLocalStorage(), + 'Cache-Control': 'no-store' } }); }