diff --git a/index.html b/index.html index 29a8af6..1ef4966 100644 --- a/index.html +++ b/index.html @@ -11,12 +11,11 @@ - + + + + diff --git a/sw.js b/sw.js index 334ea24..9195f20 100644 --- a/sw.js +++ b/sw.js @@ -1,6 +1,7 @@ // Name of our cache const cacheName = 'offline-pwa-gallery-v1'; +// URLs to cache for offline mode const urlsToCache = [ ]; @@ -17,7 +18,7 @@ self.addEventListener('install', (event) => { // Intercept fetch requests to serve cached assets self.addEventListener('fetch', (event) => { if(event.request.url.match(/^https:\/\//)){ - console.log('Browser is requesting', event.request.url); + console.log('Browser is requesting:', event.request.url); } event.respondWith( caches.match(event.request).then((cachedResponse) => {