Skip to content

Commit

Permalink
reject the promise
Browse files Browse the repository at this point in the history
  • Loading branch information
felixrindt committed Jul 16, 2023
1 parent b2b2ace commit b816f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ephios/core/templates/core/serviceworker.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async function cacheThenNetwork(event) {
return cache_response;
}
return fetchAndCacheOrCatch(event, async (err) => {
return caches.match('{{ offline_url }}', {ignoreVary: true});
throw err; // already checked the cache, so we can only fail
})
}

Expand Down

0 comments on commit b816f4b

Please sign in to comment.