diff options
Diffstat (limited to 'src/worker.js')
| -rw-r--r-- | src/worker.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/worker.js b/src/worker.js index 414c328..94da8db 100644 --- a/src/worker.js +++ b/src/worker.js @@ -80,8 +80,8 @@ sw.addEventListener('fetch', (event) => { // /assets/ belong to android app if (url.pathname.startsWith('/assets/')) return; - // request specific API endpoints from the network if possible and cache them locally - if (url.pathname.match('backend.php\\?op=(cover|getinfo)')) { + // request API endpoints from the network if possible and cache them locally + if (url.pathname.match('backend.php')) { event.respondWith( // @ts-ignore-next-line (async () => { |
