/* global self, fetch, caches */

self.addEventListener('fetch', function (event) {
  event.respondWith(
    caches.open('gametime-player').then(function (cache) {
      return cache.match(event.request).then(function (response) {
        return response || fetch(event.request).then(function (response) {
          cache.put(event.request, response.clone())
          return response
        })
      })
    })
  )
})

@@ -173,89 +173,8 @@
 turn
- cache.match(event.request).then(function (response) %7B%0A        return response %7C%7C
  fet
@@ -226,18 +226,16 @@
         
-  
 cache.pu
@@ -273,26 +273,24 @@
 ())%0A        
- 
- 
 return respo
@@ -295,27 +295,87 @@
 ponse%0A      
-  %7D
+%7D).catch(function () %7B%0A        return cache.match(event.request
 )%0A      %7D)%0A 

Use smarter service worker. fallback to cache.