new way of showing offline.html
This commit is contained in:
@@ -51,7 +51,9 @@ self.addEventListener("activate", function (event) {
|
|||||||
// })
|
// })
|
||||||
// .catch(() => {
|
// .catch(() => {
|
||||||
// return caches.open(CACHE_STATIC_NAME).then((cache) => {
|
// return caches.open(CACHE_STATIC_NAME).then((cache) => {
|
||||||
// return cache.match("/offline.html");
|
// if (event.request.headers.get("accept").includes("text/html")) {
|
||||||
|
// return caches.match("/offline.html");
|
||||||
|
// }
|
||||||
// });
|
// });
|
||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
|
|||||||
Reference in New Issue
Block a user