angular-docs-cn/packages/service-worker/worker/test
George Kalpakas 5e0dbe314b fix(service-worker): allow checking for updates when constantly polling the server (#40234)
Previously, the SW would wait to become idle before executing scheduled
tasks (including checks for newer app versions). It was considered idle
when it hadn't received any request for at least 5 seconds. As a result,
if the app performed polling (i.e. sent requests to the server) in a
shorter than 5 seconds interval, the SW would never detect and update to
a newer app version.
Related issue: #40207

This commit fixes this by adding a max delay to `IdleScheduler` to
ensure that no scheduled task will remain pending for longer than the
specified max delay.

PR Close #40234
2021-01-11 10:42:50 -08:00
..
BUILD.bazel test: setup circular dependency tests for all entry points (#34774) 2020-01-23 11:36:40 -08:00
data_spec.ts feat(service-worker): add the option to prefer network for navigation requests (#38565) 2020-09-22 09:29:20 -07:00
happy_spec.ts fix(service-worker): correctly handle failed cache-busted request (#39786) 2020-11-23 14:59:55 -08:00
idle_spec.ts fix(service-worker): allow checking for updates when constantly polling the server (#40234) 2021-01-11 10:42:50 -08:00
prefetch_spec.ts fix(service-worker): allow checking for updates when constantly polling the server (#40234) 2021-01-11 10:42:50 -08:00