angular-cn/packages
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
..
animations docs(animations): migrate deprecated `@whatItDoes` tag (#23210) 2018-04-10 21:49:32 -07:00
bazel build: include tslib in umd bundles (#23354) 2018-04-13 00:13:54 -07:00
benchpress refactor: ensure all 'TODO's are consistent (#23252) 2018-04-13 13:11:01 -07:00
common build(common): mark locales files as side-effect-full (#23366) 2018-04-13 13:09:13 -07:00
compiler fix(ivy): update compiler to generate separate creation mode and update mode blocks (#23292) 2018-04-11 15:30:39 -07:00
compiler-cli fix(compiler-cli): shorten resolved module name in fileNameToModuleName to npm package name for typings (#23231) 2018-04-13 00:19:19 -07:00
core refactor: ensure all 'TODO's are consistent (#23252) 2018-04-13 13:11:01 -07:00
docs refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
elements fix(elements): include schematics in npm distro (#23350) 2018-04-13 00:50:04 -07:00
examples fix(common): titlecase pipe (#22600) 2018-03-23 13:42:51 -04:00
forms docs: remove all deprecated `@stable` jsdoc tags (#23210) 2018-04-10 21:49:32 -07:00
http refactor: ensure all 'TODO's are consistent (#23252) 2018-04-13 13:11:01 -07:00
language-service refactor(language-service): fix typo on type.ts language-service 2018-04-13 00:06:26 -07:00
platform-browser feat(platform-browser): add token marking which the type of animation module nearest in the injector tree (#23075) 2018-04-12 23:17:38 -07:00
platform-browser-dynamic docs: remove all deprecated `@stable` jsdoc tags (#23210) 2018-04-10 21:49:32 -07:00
platform-server fix(platform-server): require node v8+ (#23331) 2018-04-12 00:08:50 -07:00
platform-webworker refactor: ensure all 'TODO's are consistent (#23252) 2018-04-13 13:11:01 -07:00
platform-webworker-dynamic docs: remove all deprecated `@stable` jsdoc tags (#23210) 2018-04-10 21:49:32 -07:00
router docs: remove all deprecated `@stable` jsdoc tags (#23210) 2018-04-10 21:49:32 -07:00
service-worker feat(service-worker): add support for configuring navigations URLs (#23339) 2018-04-13 13:13:36 -07:00
upgrade docs(upgrade): fix detail regarding bootstrapping order (#23225) (#23270) 2018-04-12 23:16:18 -07:00
BUILD.bazel feat(bazel): introduce a binary stamping feature (#22176) 2018-02-15 14:08:53 -08:00
README.md Revert "docs: Remove unneeded file (#18106)" 2017-07-20 16:46:47 -05:00
empty.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
es6-subset.d.ts build: switch from npm to yarn (#19328) 2017-09-22 13:20:52 -07:00
goog.d.ts fix(compiler): add typings for `COMPILED`. 2017-09-29 09:26:38 -07:00
license-banner.txt docs(common): update copyright years (#21232) 2018-01-04 17:45:36 -05:00
rollup.config.js refactor: make all rollup config ES5 compatible (#20028) 2017-10-30 23:09:17 -04:00
system.d.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
tsconfig-build.json build: enable importHelpers in tsconfig (#22812) 2018-03-15 21:16:03 -07:00
tsconfig-metadata.json refactor(compiler): bump metadata version to 4 (#19338) 2017-09-26 13:31:59 -07:00
tsconfig.json feat(elements): add schematics (#23298) 2018-04-11 18:13:30 -07:00
types.d.ts build: add bazel test rules for remainder of packages (#21053) 2017-12-22 13:10:51 -08:00

README.md

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

License: MIT