Don't cache everything in the service worker, only explicitly assets

This commit is contained in:
kolaente 2020-07-04 18:58:29 +02:00
parent 439bd3330f
commit e66c8bf6b3
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -14,12 +14,6 @@ workbox.routing.registerRoute(
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.
self.addEventListener('message', (e) => {
if (!e.data) {