angular/tools
George Kalpakas 08325aaffc feat(service-worker): add support for configuring navigations URLs (#23339)
The ServiceWorker will redirect navigation requests that don't match any
`asset` or `data` group to the specified index file. The rules for a
request to be classified as a navigation request are as follows:
1. Its `mode` must be `navigation`.
2. It must accept a `text/html` response.
3. Its URL must match certain criteria (see below).

By default, a navigation request can have any URL except for:
1. URLs containing `__`.
2. URLs to files (i.e. containing a file extension in the last path
   segment).

While these rules are fine in many cases, sometimes it is desirable to
configure different rules for the URLs of navigation requests (e.g.
ignore specific URLs and pass them through to the server).

This commit adds support for specifying an optional `navigationUrls`
list in `ngsw-config.json`, which contains URLs or simple globs
(currently only recognizing `!`, `*` and `**`).
Only requests whose URLs match any of the positive URLs/patterns and
none of the negative ones (i.e. URLs/patterns starting with `!`) will be
considered navigation requests (and handled accordingly by the SW).

(This is an alternative implementation to #23025.)

Fixes #20404

PR Close #23339
2018-04-13 13:13:36 -07:00
..
build build: update npm dependencies (#19328) 2017-09-22 13:20:52 -07:00
cjs-jasmine feat(elements): add support for creating custom elements (#22413) 2018-03-16 12:39:07 -07:00
code.angularjs.org build: use subshells when changing directories 2017-05-12 12:19:51 -07:00
gulp-tasks refactor: ensure all 'TODO's are consistent (#23252) 2018-04-13 13:11:01 -07:00
karma build: update npm dependencies (#19328) 2017-09-22 13:20:52 -07:00
npm build: remove local yarn (#19981) 2017-11-02 15:11:34 -07:00
public_api_guard feat(service-worker): add support for configuring navigations URLs (#23339) 2018-04-13 13:13:36 -07:00
source-map-test build: update npm dependencies (#19328) 2017-09-22 13:20:52 -07:00
symbol-extractor fix(ivy): change symbol-extractor to use .accept rather than -—define UPDATE_GOLDEN=1 (#22913) 2018-03-22 18:02:48 -04:00
testing feat(core): add task tracking to Testability (#16863) 2018-03-14 08:48:48 -07:00
travis build: update npm dependencies (#19328) 2017-09-22 13:20:52 -07:00
tree-shaking-test refactor: update paths from modules/@angular to packages 2017-03-08 16:29:28 -08:00
ts-api-guardian build: remove unnecessary stability check (#23176) 2018-04-05 10:03:39 -07:00
tsc-watch build: remove references to tsc-wrapped (#19298) 2017-09-21 13:55:52 -07:00
tslint feat(elements): add schematics (#23298) 2018-04-11 18:13:30 -07:00
validate-commit-message feat(elements): add support for creating custom elements (#22413) 2018-03-16 12:39:07 -07:00
yarn build: upgrade yarn to 1.3.2 (#21406) 2018-01-10 12:32:26 -08:00
bazel.rc build: rm --noimplicit_deps from bazel query (#22912) 2018-03-22 18:03:39 -04:00
bazel_stamp_vars.sh build: fix bazel stamping (#22965) 2018-03-28 09:00:02 -07:00
BUILD.bazel build: fix bazel stamping (#22965) 2018-03-28 09:00:02 -07:00
check-environment.js build: update npm dependencies (#19328) 2017-09-22 13:20:52 -07:00
defaults.bzl build: include tslib in umd bundles (#23354) 2018-04-13 00:13:54 -07:00
jsconfig.json chore(vscode): add jsconfig.json and remove .settings dir 2015-10-29 13:53:21 +00:00
postinstall-patches.js build: update to rxjs@6.0.0-beta.4 (#23084) 2018-03-30 13:07:03 -07:00
tsconfig.json test(bazel): Build and test ts-api-guardian locally (#22544) 2018-03-02 15:00:00 -08:00
types.d.ts fix(fakeAsync): have fakeAsync use Proxy zone. (#10797) 2016-08-19 12:10:53 -07:00
utils.inc feat(bundle): add script to push bundles to code.angularjs.org 2015-04-14 14:50:53 -07:00