angular-cn/packages/service-worker/worker/test
Alex Rickabaugh 20e1cc049f fix(service-worker): check for updates on navigation
Currently the Service Worker checks for updates only on SW startup,
an event which happens frequently but also nondeterministically. This
makes it hard for developers to observe the update process or reason
about how updates will be delivered to users. This problem is
exacerbated by the DevTools behavior of keeping the SW alive
indefinitely while opened, effectively preventing the page from
updating at all.

This change causes the SW to additionally check for updates on
navigation requests (app page reloads). This creates deterministic
update behavior, and is much easier for developers to reason about.
It does leave the old update-on-SW-startup behavior in place, as
removing that would be a breaking change.

Fixes #20877
2017-12-15 15:19:20 -08:00
..
BUILD.bazel build: upgrade bazel rules to latest (#20768) 2017-12-07 11:27:50 -08:00
async.ts feat(service-worker): introduce the @angular/service-worker package (#19274) 2017-09-28 16:18:12 -07:00
data_spec.ts fix(service-worker): several misc fixes for corner cases 2017-10-05 13:27:31 -07:00
happy_spec.ts fix(service-worker): check for updates on navigation 2017-12-15 15:19:20 -08:00
idle_spec.ts fix(service-worker): several misc fixes for corner cases 2017-10-05 13:27:31 -07:00
prefetch_spec.ts fix(service-worker): several misc fixes for corner cases 2017-10-05 13:27:31 -07:00