angular-cn/packages/service-worker/worker
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
..
src fix(service-worker): check for updates on navigation 2017-12-15 15:19:20 -08:00
test fix(service-worker): check for updates on navigation 2017-12-15 15:19:20 -08:00
testing build: upgrade bazel rules to latest (#20768) 2017-12-07 11:27:50 -08:00
BUILD.bazel build: upgrade bazel rules to latest (#20768) 2017-12-07 11:27:50 -08:00
main.ts feat(service-worker): introduce the @angular/service-worker package (#19274) 2017-09-28 16:18:12 -07:00
rollup-worker.config.js feat(service-worker): introduce the @angular/service-worker package (#19274) 2017-09-28 16:18:12 -07:00
tsconfig.json feat(service-worker): introduce the @angular/service-worker package (#19274) 2017-09-28 16:18:12 -07:00