aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw.js10
1 files changed, 10 insertions, 0 deletions
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);
+
+})
+
+);
+
});