diff --git a/interface/src/api/endpoints.ts b/interface/src/api/endpoints.ts index 817063538..1cd616e52 100644 --- a/interface/src/api/endpoints.ts +++ b/interface/src/api/endpoints.ts @@ -9,12 +9,13 @@ export const ACCESS_TOKEN = 'access_token'; export const alovaInstance = createAlova({ statesHook: ReactHook, timeout: 3000, // 3 seconds before throwing a timeout error - cacheFor: { - GET: { - mode: 'memory', - expire: 60 * 10 * 1000 // 60 seconds in cache - } - }, + cacheFor: null, // disable cache + // cacheFor: { + // GET: { + // mode: 'memory', + // expire: 60 * 10 * 1000 // 60 seconds in cache + // } + // }, requestAdapter: xhrRequestAdapter(), beforeRequest(method) { if (localStorage.getItem(ACCESS_TOKEN)) {