Don't cache everything in the service worker, only explicitly assets
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2020-07-04 18:58:29 +02:00
parent 439bd3330f
commit e66c8bf6b3
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 0 additions and 6 deletions

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) {