diff --git a/package.json b/package.json index b62533d7..2124e14c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "store", - "version": "2.3.0", + "version": "2.3.1", "private": true, "scripts": { "start": "nuxt start", diff --git a/plugins/axios.ts b/plugins/axios.ts index f1dd43c2..88220b73 100644 --- a/plugins/axios.ts +++ b/plugins/axios.ts @@ -94,7 +94,8 @@ export default defineNuxtPlugin((nuxt) => { config._beginTime = Date.now() // Disable cache for some paths - if (pathsWithoutCache.some((url) => config.url?.includes(url))) config.cache = false + if ([...pathsWithoutCache, ...pathsWithAuth].some((url) => config.url?.includes(url))) + config.cache = false // @ts-ignore this $i18n exists, but it's not in the Nuxt types for some reason const apiLanguage = languageStore.getLanguageByIso(nuxt.$i18n.locale.value)