Skip to content

Commit

Permalink
Merge pull request #10 from heseya/hotfix/v2.5.1
Browse files Browse the repository at this point in the history
Update axios.ts
  • Loading branch information
Shadow38PL authored Jul 4, 2024
2 parents aef5174 + 179dec4 commit ba205d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ba205d8

Please sign in to comment.