diff --git a/aio/content/examples/service-worker-getting-started/src/ngsw-config.json b/aio/content/examples/service-worker-getting-started/src/ngsw-config.json
index 8b78a4f893..19133dc879 100755
--- a/aio/content/examples/service-worker-getting-started/src/ngsw-config.json
+++ b/aio/content/examples/service-worker-getting-started/src/ngsw-config.json
@@ -7,12 +7,9 @@
"resources": {
"files": [
"/favicon.ico",
- "/index.html"
- ],
- "versionedFiles": [
- "/*.bundle.css",
- "/*.bundle.js",
- "/*.chunk.js"
+ "/index.html",
+ "/*.css",
+ "/*.js"
]
}
}, {
@@ -25,4 +22,4 @@
]
}
}]
-}
\ No newline at end of file
+}
diff --git a/aio/content/guide/service-worker-config.md b/aio/content/guide/service-worker-config.md
index 8f7beaeba6..d2293d0e48 100644
--- a/aio/content/guide/service-worker-config.md
+++ b/aio/content/guide/service-worker-config.md
@@ -70,6 +70,7 @@ interface AssetGroup {
updateMode?: 'prefetch' | 'lazy';
resources: {
files?: string[];
+ /** @deprecated As of v6 `versionedFiles` and `files` options have the same behavior. Use `files` instead. */
versionedFiles?: string[];
urls?: string[];
};
@@ -102,7 +103,7 @@ This section describes the resources to cache, broken up into three groups.
* `files` lists patterns that match files in the distribution directory. These can be single files or glob-like patterns that match a number of files.
-* `versionedFiles` is like `files` but should be used for build artifacts that already include a hash in the filename, which is used for cache busting. The Angular service worker can optimize some aspects of its operation if it can assume file contents are immutable.
+* `versionedFiles` has been deprecated. As of v6 `versionedFiles` and `files` options have the same behavior. Use `files` instead.
* `urls` includes both URLs and URL patterns that will be matched at runtime. These resources are not fetched directly and do not have content hashes, but they will be cached according to their HTTP headers. This is most useful for CDNs such as the Google Fonts service.
_(Negative glob patterns are not supported.)_
diff --git a/packages/service-worker/config/src/generator.ts b/packages/service-worker/config/src/generator.ts
index 399d733e67..fc9dfb31a6 100644
--- a/packages/service-worker/config/src/generator.ts
+++ b/packages/service-worker/config/src/generator.ts
@@ -44,6 +44,13 @@ export class Generator {
Promise