Skip to content

Commit

Permalink
refactor: always update cache version
Browse files Browse the repository at this point in the history
  • Loading branch information
juusopiikkila committed Sep 3, 2024
1 parent 9b00e0c commit dd7247d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ class Storyblok {
&& cacheVersions[params.token] != response.data.cv
) {
await this.flushCache()
cacheVersions[params.token] = params.cv || response.data.cv
cacheVersions[params.token] = response.data.cv
}

return resolve(response)
Expand Down

0 comments on commit dd7247d

Please sign in to comment.