webapp work, push required for https
This commit is contained in:
parent
021d5ec3a1
commit
3577728a14
|
@ -17,7 +17,7 @@ self.addEventListener("fetch", e => {
|
||||||
return r || fetch(e.request).then(response => {
|
return r || fetch(e.request).then(response => {
|
||||||
return caches.open(cacheName).then(cache => {
|
return caches.open(cacheName).then(cache => {
|
||||||
console.log("[Service Worker] Caching new resource:", e.request.url);
|
console.log("[Service Worker] Caching new resource:", e.request.url);
|
||||||
cache.put(e.request, respone.clone());
|
cache.put(e.request, response.clone());
|
||||||
return response;
|
return response;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue