Skip to content

Commit

Permalink
waitUtil(fetchAndCachePromise) (#3015)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffposnick committed Jan 14, 2022
1 parent b14bdb4 commit 01a5063
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/workbox-strategies/src/StaleWhileRevalidate.ts
Expand Up @@ -84,6 +84,7 @@ class StaleWhileRevalidate extends Strategy {
// Swallow this error because a 'no-response' error will be thrown in
// main handler return flow. This will be in the `waitUntil()` flow.
});
void handler.waitUntil(fetchAndCachePromise);

let response = await handler.cacheMatch(request);

Expand Down

0 comments on commit 01a5063

Please sign in to comment.