angular-cn/packages/service-worker
George Kalpakas 9e9b8dd494 fix(service-worker): do not enter degraded mode when offline (#22883)
Previously, when trying to fetch `ngsw.json` (e.g. during
`checkForUpdate()`) while either the client or the server were offline,
the ServiceWorker would enter a degrade mode, where only existing
clients would be served. This essentially meant that the ServiceWorker
didn't work offline.
This commit fixes it by differentiating offline errors and not entering
degraded mode. The ServiceWorker will remain in the current mode until
connectivity to the server is restored.

Fixes #21636

PR Close #22883
2018-03-28 10:02:16 -07:00
..
cli refactor: make all rollup config ES5 compatible (#20028) 2017-10-30 23:09:17 -04:00
config build: expose flatModuleOutFile option on ng_module (#22814) 2018-03-20 13:28:57 -07:00
src feat(core): upgrade rxjs to 6.0.0-alpha.4 (#22573) 2018-03-19 21:51:51 -07:00
test feat(core): upgrade rxjs to 6.0.0-alpha.4 (#22573) 2018-03-19 21:51:51 -07:00
testing feat(core): upgrade rxjs to 6.0.0-alpha.4 (#22573) 2018-03-19 21:51:51 -07:00
worker fix(service-worker): do not enter degraded mode when offline (#22883) 2018-03-28 10:02:16 -07:00
BUILD.bazel build: expose flatModuleOutFile option on ng_module (#22814) 2018-03-20 13:28:57 -07:00
build.sh feat(service-worker): add helper script which will uninstall SW (#21863) 2018-01-30 11:43:03 -08:00
index.ts fix(aio): add service worker entrypoint to aio build (#19875) 2017-10-23 19:31:42 -04:00
package.json feat: update the package output of build.sh to APF v6 (#22808) 2018-03-18 09:33:51 -07: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 feat(core): upgrade rxjs to 6.0.0-alpha.4 (#22573) 2018-03-19 21:51:51 -07:00
safety-worker.js feat(service-worker): add helper script which will uninstall SW (#21863) 2018-01-30 11:43:03 -08:00
tsconfig-build.json fix(service-worker): ensure initialised in browser only (#20782) 2017-12-06 06:55:33 -08:00