From c998d3b25002d982a61f540eb8a950837bf2ab73 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Fri, 9 Feb 2018 21:12:15 +0530 Subject: Update sw.js --- sw.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sw.js') diff --git a/sw.js b/sw.js index c4ed7cf..ce10713 100644 --- a/sw.js +++ b/sw.js @@ -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); + +}) + +); + }); -- cgit v1.2.3