From 0a80757ac3c44a52c0f6c99341dc38f03d64fd9e Mon Sep 17 00:00:00 2001 From: Nathaniel <73431750+nyakotey@users.noreply.github.com> Date: Tue, 24 May 2022 12:48:29 +0000 Subject: [PATCH] activate sw --- app.js | 4 ++-- sw.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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;