new way of showing offline.html

This commit is contained in:
2026-04-27 12:11:00 +03:30
parent d099527114
commit 09b4b6c4d6

View File

@@ -51,7 +51,9 @@ self.addEventListener("activate", function (event) {
// })
// .catch(() => {
// 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");
// }
// });
// });
// }