Skip to content

Commit

Permalink
fix: Refetch the lang collection if the cached version is not ok (#1500)
Browse files Browse the repository at this point in the history
  • Loading branch information
kieranderson committed Jul 20, 2021
1 parent 8e76d8f commit b546d4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions helpers/getLocalizeResources.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ async function fetchWithCaching(resource) {

debug && console.log(`[Oslo] cache hit: ${resource}`);
if (!cacheValue.ok) {
fetchWithQueuing(resource).then(url => URL.revokeObjectURL(url));
throw SingleFailedReason;
}

Expand Down

0 comments on commit b546d4b

Please sign in to comment.