From a0a3648e7a2a2d60010fd1b40f1b77e4ba2c4e41 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 29 Nov 2018 19:40:51 +0100 Subject: [PATCH] docs: add more info on what is being cached (#27343) PR Close #27343 --- aio/content/guide/service-worker-getting-started.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/aio/content/guide/service-worker-getting-started.md b/aio/content/guide/service-worker-getting-started.md index ff18812b30..e622f89530 100644 --- a/aio/content/guide/service-worker-getting-started.md +++ b/aio/content/guide/service-worker-getting-started.md @@ -94,6 +94,16 @@ Notice that all of the files the browser needs to render this application are ca * `favicon.ico`. * Build artifacts (JS and CSS bundles). * Anything under `assets`. +* Images and fonts directly under the configured `outputPath` (by default `./dist//`) or `resourcesOutputPath`. See [`ng build`](cli/build) for more information about these options. + + +
+Pay attention to two key points: + +1. The generated `ngsw-config.json` includes a limited list of cachable fonts and images extentions. In some cases, you might want to modify the glob pattern to suit your needs. + +1. If `resourcesOutputPath` or `assets` paths are modified after the generation of configuration file, you need to change the paths manually in `ngsw-config.json`. +
### Making changes to your application