Skip to content

Commit

Permalink
docs: explain how ngsw.json is generated (#44823)
Browse files Browse the repository at this point in the history
Update aio/content/guide/service-worker-devops.md

ngsw.json is the manifest file which is generated at build time ( based on ngsw-config.json ). This explains this a bit clearer.
At first, I thought that it was a wrongly named filename. Not is it explicitly described.

Co-Authored-By: George Kalpakas <kalpakas.g@gmail.com>

PR Close #44823
  • Loading branch information
Arjen-1 authored and thePunderWoman committed Feb 1, 2022
1 parent e0a340e commit 9f5edce
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion aio/content/guide/service-worker-devops.md
Expand Up @@ -30,7 +30,14 @@ resources, and it changes if any of them change. In practice, the version
is determined by the contents of the `ngsw.json` file, which includes
hashes for all known content. If any of the cached files change, the file's
hash will change in `ngsw.json`, causing the Angular service worker to
treat the active set of files as a new version.
treat the active set of files as a new version.

<div class="alert is-helpful">

`ngsw.json` is the manifest file that is generated at
build time based on `ngsw-config.json`.

</div>

With the versioning behavior of the Angular service worker, an application
server can ensure that the Angular application always has a consistent set of files.
Expand Down

0 comments on commit 9f5edce

Please sign in to comment.