Don't cache everything in the service worker, only explicitly assets
This commit is contained in:
parent
439bd3330f
commit
e66c8bf6b3
1 changed files with 0 additions and 6 deletions
|
@ -14,12 +14,6 @@ workbox.routing.registerRoute(
|
||||||
new workbox.strategies.NetworkOnly()
|
new workbox.strategies.NetworkOnly()
|
||||||
);
|
);
|
||||||
|
|
||||||
// Cache everything else
|
|
||||||
workbox.routing.registerRoute(
|
|
||||||
new RegExp('.*'),
|
|
||||||
new workbox.strategies.StaleWhileRevalidate()
|
|
||||||
);
|
|
||||||
|
|
||||||
// This code listens for the user's confirmation to update the app.
|
// This code listens for the user's confirmation to update the app.
|
||||||
self.addEventListener('message', (e) => {
|
self.addEventListener('message', (e) => {
|
||||||
if (!e.data) {
|
if (!e.data) {
|
||||||
|
|
Loading…
Reference in a new issue