angular-cn/packages/service-worker/worker/test
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
..
BUILD.bazel test(ivy): mark failing test targets with fixme-ivy-jit and fixme-ivy-local tags (#26471) 2018-10-23 08:57:42 -07:00
data_spec.ts fix(service-worker): cache opaque responses when requests exceeds timeout threshold (#30977) 2019-06-27 09:52:29 -07:00
happy_spec.ts fix(service-worker): keep serving clients on older versions if latest is invalidated (#31865) 2019-09-04 15:41:04 -07:00
idle_spec.ts test(service-worker): remove obsolete async test helpers (#30977) 2019-06-27 09:52:28 -07:00
prefetch_spec.ts test(service-worker): remove obsolete async test helpers (#30977) 2019-06-27 09:52:28 -07:00