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)