From 0481245a3d325c08b1e9055cc0a68713fd8d95a9 Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Sat, 2 Jan 2021 02:31:44 +0530 Subject: [PATCH] sw: don't remove cache --- src/registerServiceWorker.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/registerServiceWorker.js b/src/registerServiceWorker.js index 3059b57f..c27884e2 100644 --- a/src/registerServiceWorker.js +++ b/src/registerServiceWorker.js @@ -21,9 +21,6 @@ if (process.env.NODE_ENV === 'production') { }, updated() { console.log('New content is available; please refresh.') - caches.keys().then(function (names) { - for (let name of names) caches.delete(name); - }) }, offline() { console.log('No internet connection found. App is running in offline mode.')