angular-cn/packages/service-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
..
cli refactor: make all rollup config ES5 compatible (#20028) 2017-10-30 23:09:17 -04:00
config refactor: make all rollup config ES5 compatible (#20028) 2017-10-30 23:09:17 -04:00
src fix(service-worker): ensure initialised in browser only (#20782) 2017-12-06 06:55:33 -08:00
test fix(service-worker): ensure initialised in browser only (#20782) 2017-12-06 06:55:33 -08:00
testing fix(service-worker): listen for messages on the right event source (#19954) 2017-10-26 16:04:59 -04:00
worker fix(service-worker): check for updates on navigation 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
build.sh feat(service-worker): introduce the @angular/service-worker package (#19274) 2017-09-28 16:18:12 -07:00
index.ts fix(aio): add service worker entrypoint to aio build (#19875) 2017-10-23 19:31:42 -04:00
package.json fix(service-worker): ensure initialised in browser only (#20782) 2017-12-06 06:55:33 -08:00
public_api.ts feat(service-worker): introduce the @angular/service-worker package (#19274) 2017-09-28 16:18:12 -07:00
rollup.config.js fix(service-worker): ensure initialised in browser only (#20782) 2017-12-06 06:55:33 -08:00
tsconfig-build.json fix(service-worker): ensure initialised in browser only (#20782) 2017-12-06 06:55:33 -08:00