diff --git a/app.js b/app.js index c218bed8..7497227a 100644 --- a/app.js +++ b/app.js @@ -297,7 +297,7 @@ addWhatappEventHandler(); } // service worker -/* + if('serviceWorker' in navigator){ window.addEventListener('load', () => { navigator.serviceWorker.register('/sw.js') @@ -307,4 +307,4 @@ if('serviceWorker' in navigator){ .catch((err)=> console.log('Service worker not registered', err)); }); -}*/ +} diff --git a/sw.js b/sw.js index 694e2935..e1140aae 100644 --- a/sw.js +++ b/sw.js @@ -1,7 +1,7 @@ // #5 -const staticCacheName = 'site-static-v52'; -const dynamicCache = 'site-dynamic-v52'; +const staticCacheName = 'site-static-v53'; +const dynamicCache = 'site-dynamic-v53'; const dynamicCacheSize = 30;