diff --git a/app.js b/app.js index 664e1984..87da26e8 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,5 +307,5 @@ if('serviceWorker' in navigator){ .catch((err)=> console.log('Service worker not registered', err)); }); -}*/ +} diff --git a/sw.js b/sw.js index cfe7757b..694e2935 100644 --- a/sw.js +++ b/sw.js @@ -1,7 +1,7 @@ // #5 -const staticCacheName = 'site-static-v51'; -const dynamicCache = 'site-dynamic-v51'; +const staticCacheName = 'site-static-v52'; +const dynamicCache = 'site-dynamic-v52'; const dynamicCacheSize = 30;