We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ec8100 commit c8d27c1Copy full SHA for c8d27c1
1 file changed
pwabuilder-sw.js
@@ -2,7 +2,7 @@
2
3
importScripts('https://storage.googleapis.com/workbox-cdn/releases/5.0.0/workbox-sw.js');
4
5
-const CACHE = "pwabuilder-precache-offline";
+const CACHE = "pwabuilder-offline-page";
6
7
// TODO: replace the following with the correct offline fallback page i.e.: const offlineFallbackPage = "offline.html";
8
const offlineFallbackPage = "offline.html";
@@ -26,7 +26,7 @@ if (workbox.navigationPreload.isSupported()) {
26
27
workbox.routing.registerRoute(
28
new RegExp('/*'),
29
- new workbox.strategies.CacheFirst({
+ new workbox.strategies.StaleWhileRevalidate({
30
cacheName: CACHE
31
})
32
);
0 commit comments