summaryrefslogtreecommitdiff
path: root/worker.js
diff options
context:
space:
mode:
Diffstat (limited to 'worker.js')
-rw-r--r--worker.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/worker.js b/worker.js
index 2fe5677..158fc1c 100644
--- a/worker.js
+++ b/worker.js
@@ -63,6 +63,10 @@ this.addEventListener('fetch', function(event) {
return caches.match("read.html");
}
+ if (req.url.match("offline.html")) {
+ return caches.match("offline.html");
+ }
+
if (req.url.match("index.php")) {
return caches.match("offline.html");
}