diff options
Diffstat (limited to 'sw.js')
-rw-r--r-- | sw.js | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -35,4 +35,14 @@ self.addEventListener('fetch', function(event) { console.log(event.request.url); +event.respondWith( + +caches.match(event.request).then(function(response) { + +return response || fetch(event.request); + +}) + +); + }); |