Skip to content

Commit

Permalink
Activate service worker, cache names
Browse files Browse the repository at this point in the history
  • Loading branch information
Rdjarbeng committed May 24, 2022
1 parent 13a6282 commit 059b966
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ addWhatappEventHandler();
}

// service worker
/*

if('serviceWorker' in navigator){
window.addEventListener('load', () => {
navigator.serviceWorker.register('/sw.js')
Expand All @@ -307,4 +307,4 @@ if('serviceWorker' in navigator){
.catch((err)=> console.log('Service worker not registered', err));
});

}*/
}
4 changes: 2 additions & 2 deletions sw.js
Original file line number Diff line number Diff line change
@@ -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;

Expand Down

0 comments on commit 059b966

Please sign in to comment.