File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010< script >
1111 if ( 'serviceWorker' in navigator ) {
1212 window . addEventListener ( 'load' , function ( ) {
13- navigator . serviceWorker . register ( '/sw.js' ) . then ( function ( registration ) {
13+ navigator . serviceWorker . register ( '/sw.js?0007 ' ) . then ( function ( registration ) {
1414 // Successfully registered the Service Worker
1515 //console.log('Service Worker registration successful with scope: ', registration.scope);
1616 } ) . catch ( function ( err ) {
Original file line number Diff line number Diff line change 1- var cacheName = 'csswizardry:0006 ' ;
1+ var cacheName = 'csswizardry:0007 ' ;
22var cacheFiles = [
33 '/' ,
44 '/about/' ,
55 '/services/' ,
66 '/contact/' ,
7- '/offline/'
7+ '/offline/' ,
88 '/workshops/' ,
99 '/speaking/' ,
1010 '/consultancy/' ,
@@ -66,7 +66,7 @@ self.addEventListener('fetch', function(event) {
6666// Empty out any caches that don’t match the ones listed.
6767self . addEventListener ( 'activate' , function ( event ) {
6868
69- var cacheWhitelist = [ 'csswizardry:0006 ' ] ;
69+ var cacheWhitelist = [ 'csswizardry:0007 ' ] ;
7070
7171 event . waitUntil (
7272 caches . keys ( ) . then ( function ( cacheNames ) {
You can’t perform that action at this time.
0 commit comments