angular-cn/packages/service-worker
George Kalpakas d9dc46e651 fix(service-worker): ignore invalid `only-if-cached` requests (#22883)
Under some circumstances (possibly related to opening Chrome DevTools),
requests are made with `cache: 'only-if-cached'` and `mode: 'no-cors'`.
These request will eventually fail, because `only-if-cached` is only
allowed to be used with `mode: 'same-origin'`.
This is likely a bug in Chrome DevTools.

This commit avoids errors related to such requests by not handling them.

Fixes #22362

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): ignore invalid `only-if-cached` requests (#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