We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79322c1 commit 8cf2845Copy full SHA for 8cf2845
templates/workbox/sw.js
@@ -96,7 +96,7 @@ function offlinePage(workbox, options) {
96
const strategy = new workbox.strategies[options.offlineStrategy]
97
return strategy
98
.handle({ request, event })
99
- .catch(() => caches.match(options.offlinePage))
+ .catch(() => workbox.precaching.matchPrecache(options.offlinePage))
100
})
101
}
102
test/__snapshots__/pwa.test.js.snap
@@ -200,7 +200,7 @@ function offlinePage(workbox, options) {
200
201
202
203
+ .catch(() => caches.matchPrecache(options.offlinePage))
204
205
206
0 commit comments