angular-cn/packages/service-worker/worker/testing
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
..
BUILD.bazel refactor(bazel): convert most ts_library to ng_module (#22176) 2018-02-15 14:08:53 -08:00
cache.ts build: upgrade to TypeScript 2.6 (#21144) 2017-12-22 20:15:47 -08:00
fetch.ts fix(service-worker): ignore invalid `only-if-cached` requests (#22883) 2018-03-28 10:02:16 -07:00
mock.ts fix(service-worker): do not enter degraded mode when offline (#22883) 2018-03-28 10:02:16 -07:00
scope.ts feat(core): upgrade rxjs to 6.0.0-alpha.4 (#22573) 2018-03-19 21:51:51 -07:00