angular-docs-cn/packages/service-worker/worker
Sonu Kapoor 036a2faf02 feat(service-worker): add `UnrecoverableStateError` (#36847)
In several occasions it has been observed when the browser has evicted
eagerly cached assets from the cache and which can also not be found on the
server anymore. This can lead to broken state where only parts of the application
will load and others will fail.

This commit fixes this issue by checking for the missing asset in the cache
and on the server. If this condition is true, the broken client will be
notified about the current state through the `UnrecoverableStateError`.

Closes #36539

PR Close #36847
2020-08-31 11:41:11 -07:00
..
src feat(service-worker): add `UnrecoverableStateError` (#36847) 2020-08-31 11:41:11 -07:00
test feat(service-worker): add `UnrecoverableStateError` (#36847) 2020-08-31 11:41:11 -07:00
testing refactor(service-worker): use nominal type for normalized URLs (#37922) 2020-07-09 09:44:57 -07:00
BUILD.bazel build: enable service-worker tests on saucelabs (#36129) 2020-04-01 15:37:47 -07:00
main.ts refactor(service-worker): move asset URL normalization to `Adapter` (#37922) 2020-07-09 09:44:56 -07:00