angular-cn/packages/service-worker/worker
George Kalpakas bda2b4ebb6 fix(service-worker): keep serving clients on older versions if latest is invalidated (#31865)
Previously, when the latest version was invalidated (e.g. due to a hash
mismatch), the SW entered a degraded `EXISTING_CLIENTS_ONLY` mode and
removed _all_ clients from its client-version map (essentially stopping
to serve any clients). Based on the code and surrounding comments, the
intention seems to have been to only remove clients that were on the
invalidated version, but keep other clients on older versions.

This commit fixes it by only unassigning clients what were on the latest
version and keep clients assigned to older versions.

PR Close #31865
2019-09-04 15:41:04 -07:00
..
src fix(service-worker): keep serving clients on older versions if latest is invalidated (#31865) 2019-09-04 15:41:04 -07:00
test fix(service-worker): keep serving clients on older versions if latest is invalidated (#31865) 2019-09-04 15:41:04 -07:00
testing test(service-worker): better simulate opaque requests (#30977) 2019-06-27 09:52:28 -07:00
BUILD.bazel build: update to rules_nodejs 0.32.2 (#31325) 2019-07-01 14:16:42 -07:00
main.ts feat(service-worker): support multiple apps on different subpaths of a domain (#27080) 2019-03-21 12:07:56 -04:00
tsconfig.json build(bazel): use fine-grained npm deps (#26111) (#26488) 2018-10-19 20:59:29 -07:00