diff options
Diffstat (limited to 'worker.js')
-rw-r--r-- | worker.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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"); } |