summaryrefslogtreecommitdiff
path: root/worker.js
diff options
context:
space:
mode:
Diffstat (limited to 'worker.js')
-rw-r--r--worker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/worker.js b/worker.js
index 059d196..90f1724 100644
--- a/worker.js
+++ b/worker.js
@@ -112,7 +112,7 @@ this.addEventListener('fetch', function(event) {
return resp;
}).catch(function() {
- if (req.url[req.url.length-1] == "/" || req.url.match("index.php")) {
+ if (req.url[req.url.length-1] == "/" || req.url.match("index.php") || req.url.match("offline.html")) {
return caches.match("offline.html");
} else if (req.url.match("read.html")) {
return caches.match("read.html");