diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/service-worker.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/service-worker.js b/src/service-worker.js index 3c1ae0ac..ca0d472b 100644 --- a/src/service-worker.js +++ b/src/service-worker.js @@ -22,7 +22,13 @@ self.addEventListener("install", (event) => { event.waitUntil( caches .open(CACHE_BUILD) - .then((cache) => cache.addAll([...build, ...ESSENTIAL_STATIC])) + .then((cache) => + Promise.allSettled( + [...build, ...ESSENTIAL_STATIC].map((url) => + cache.add(url).catch(() => {}), + ), + ), + ) .then(() => self.skipWaiting()), ); }); |
