webapp work, push required for https

This commit is contained in:
Neale Pickett 2018-11-21 20:25:05 +00:00
parent 021d5ec3a1
commit 3577728a14
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ self.addEventListener("fetch", e => {
return r || fetch(e.request).then(response => {
return caches.open(cacheName).then(cache => {
console.log("[Service Worker] Caching new resource:", e.request.url);
cache.put(e.request, respone.clone());
cache.put(e.request, response.clone());
return response;
});
});