summaryrefslogtreecommitdiff
path: root/worker.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-06-28 23:50:17 +0300
committerAndrew Dolgov <[email protected]>2017-06-28 23:50:17 +0300
commit3099d2d5f8c4a2a89c71a773d0541849b31633ef (patch)
tree803a807268d3ff681a4395c36c8ec5bb1cc6e2b5 /worker.js
parent77117171c6e68e229b83f2db71f41c206ec0da0c (diff)
worker: cache getinfo requests as well
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 268aee2..b871848 100644
--- a/worker.js
+++ b/worker.js
@@ -77,7 +77,7 @@ this.addEventListener('fetch', function(event) {
return fetch(req).then(function(resp) {
if (resp.status == 200) {
- if (resp.url.match("backend.php\\?op=cover")) {
+ if (resp.url.match("backend.php\\?op=(cover|getinfo)")) {
return caches.open(CACHE_NAME).then(function(cache) {
cache.put(resp.url, resp.clone());
return resp;