angular/packages
George Kalpakas 73b0275dc2 fix(service-worker): improve ServiceWorker cache names (#42622)
This commit improves the cache names generated by the ServiceWorker by
making them shorter and non-repetitive. In particular, the following
changes are made:

- Data-group cache names no longer include the `dynamic` infix, since it
  does not add any value.
  Before: `ngsw:<...>:data:dynamic:<...>`
  After:  `ngsw:<...>:data:<...>`

- `CacheDatabase` table names no longer include the `ngsw:<path>` prefix
  twice.
  Before: `ngsw:<path>:db:ngsw:<path>:<...>`
  After:  `ngsw:<path>:db:<...>`

NOTE 1:
This change will result in different cache names being generated for the
same app-versions with the new SericeWorker script. This means that some
of the previously cached data will need to be re-downloaded (because the
ServiceWorker will not be able to re-use the old caches), but that
should be transparent for the end user.
While possible, adding logic to allow the ServiceWorker to retrieve data
from the old caches is not worth the extra complecity and maintenance
cost.

NOTE 2:
Generating different cache names for some of the caches means that the
ServiceWorker will not be able to clean-up some of the old caches. This
will be taken care of in a subsequent commit that will rework the
clean-up logic to be more robust (covering changes such as this one and
other edgecases).

PR Close #42622
2021-06-24 09:55:32 -07:00
..
animations feat(core): support TypeScript 4.3 (#42022) 2021-06-04 11:17:09 -07:00
bazel feat(core): support TypeScript 4.3 (#42022) 2021-06-04 11:17:09 -07:00
benchpress test: clean up internal testing utilities (#42177) 2021-05-26 20:07:25 +00:00
common docs: fix pipe params (#42593) 2021-06-17 23:03:08 +00:00
compiler fix(compiler): should not break a text token on a non-valid start tag (#42605) 2021-06-22 16:37:00 +00:00
compiler-cli fix(compiler-cli): change default ngcc hash algorithm to be FIPS compliant (#42582) 2021-06-24 08:42:38 -07:00
core docs(core): improve applicationref.bootstrap docs (#42407) 2021-06-22 16:30:37 +00:00
docs docs: remove/update broken links in resources appearing on aio (#42232) 2021-05-26 14:21:12 -07:00
elements feat(core): support TypeScript 4.3 (#42022) 2021-06-04 11:17:09 -07:00
examples docs(core): improve applicationref.bootstrap docs (#42407) 2021-06-22 16:30:37 +00:00
forms docs(forms): correct sample code for FormArray.reset (#42477) 2021-06-16 14:01:55 -07:00
language-service feat(compiler): add support for shorthand property declarations in templates (#42421) 2021-06-21 23:40:47 +00:00
localize ci: add lint error for files with missing trailing new-line (#42478) 2021-06-04 13:31:03 -07:00
misc/angular-in-memory-web-api feat(core): support TypeScript 4.3 (#42022) 2021-06-04 11:17:09 -07:00
platform-browser feat(core): support TypeScript 4.3 (#42022) 2021-06-04 11:17:09 -07:00
platform-browser-dynamic feat(core): add opt-in test module teardown configuration (#42566) 2021-06-17 18:03:47 +00:00
platform-server feat(core): support TypeScript 4.3 (#42022) 2021-06-04 11:17:09 -07:00
private/testing docs: convert the last my-app components to app-root (#42256) 2021-05-25 22:13:36 +00:00
router fix(router): error if module is destroyed before location is initialized (#42560) 2021-06-17 18:11:53 +00:00
service-worker fix(service-worker): improve ServiceWorker cache names (#42622) 2021-06-24 09:55:32 -07:00
upgrade feat(core): support TypeScript 4.3 (#42022) 2021-06-04 11:17:09 -07:00
zone.js build: lock file maintenance (#42568) 2021-06-23 17:36:41 +00:00
BUILD.bazel build: remove unused no-strict tsconfig file (#42506) 2021-06-07 10:47:47 -07:00
circular-deps-test.conf.js fix(platform-webworker): remove platform-webworker and platform-webworker-dynamic (#38846) 2020-09-30 09:13:59 -04:00
empty.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
goog.d.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
license-banner.txt docs: update year (#40925) 2021-02-22 12:37:40 -08:00
README.md
system.d.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
tsconfig-build.json
tsconfig-test.json
tsconfig.json build: exclude compiler compliance tests from Saucelabs tests (#41866) 2021-04-30 14:15:10 -07:00
types.d.ts build: replace @types/trusted-types dep with minimal type defs (#39211) 2020-10-15 09:08:00 -07:00

Angular

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

Usage information and reference details can be found in Angular documentation.

License: MIT