angular-docs-cn/packages/service-worker/worker/src
George Kalpakas 2bd767c4a6 fix(service-worker): do not blow up when caches are unwritable (#26042)
In some cases, example when the user clears the caches in DevTools but
the SW remains active on another tab and keeps references to the deleted
caches, trying to write to the cache throws errors (e.g.
`Entry was not found`).

When this happens, the SW can no longer work correctly and should enter
a degraded mode allowing requests to be served from the network.

Possibly related:
- https://github.com/GoogleChrome/workbox/issues/792
- https://bugs.chromium.org/p/chromium/issues/detail?id=639034

This commits remedies this situation, by ensuring the SW can enter the
degraded `EXISTING_CLIENTS_ONLY` mode and forward requests to the
network.

PR Close #26042
2018-09-24 09:53:39 -07:00
..
adapter.ts fix(service-worker): several misc fixes for corner cases 2017-10-05 13:27:31 -07:00
api.ts fix(service-worker): several misc fixes for corner cases 2017-10-05 13:27:31 -07:00
app-version.ts fix(service-worker): avoid network requests when looking up hashed resources in cache (#24127) 2018-07-06 13:50:37 -07:00
assets.ts fix(service-worker): do not blow up when caches are unwritable (#26042) 2018-09-24 09:53:39 -07:00
data.ts fix(service-worker): fix LruList bugs (#22769) 2018-03-21 13:11:26 -07:00
database.ts feat(service-worker): introduce the @angular/service-worker package (#19274) 2017-09-28 16:18:12 -07:00
db-cache.ts build: upgrade to TypeScript 2.6 (#21144) 2017-12-22 20:15:47 -08:00
debug.ts fix(service-worker): several misc fixes for corner cases 2017-10-05 13:27:31 -07:00
driver.ts fix(service-worker): do not blow up when caches are unwritable (#26042) 2018-09-24 09:53:39 -07:00
error.ts fix(service-worker): do not blow up when caches are unwritable (#26042) 2018-09-24 09:53:39 -07:00
idle.ts fix(service-worker): several misc fixes for corner cases 2017-10-05 13:27:31 -07:00
manifest.ts feat(service-worker): add support for configuring navigations URLs (#23339) 2018-04-13 13:13:36 -07:00
msg.ts feat(service-worker): introduce the @angular/service-worker package (#19274) 2017-09-28 16:18:12 -07:00
service-worker.d.ts build: upgrade to TypeScript 2.6 (#21144) 2017-12-22 20:15:47 -08:00
sha1.ts fix(service-worker): several misc fixes for corner cases 2017-10-05 13:27:31 -07:00