You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/guides/caching.md
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ contributors:
6
6
- jouni-kantola
7
7
- skipjack
8
8
- dannycjones
9
+
- fadysamirsadek
9
10
- afontcu
10
11
related:
11
12
- title: Issue 652
@@ -21,7 +22,7 @@ This guide focuses on the configuration needed to ensure files produced by webpa
21
22
22
23
## Output Filenames
23
24
24
-
A simple way to ensure the browser picks up changed files is by using `output.filename`[substitutions](/configuration/output#output-filename). The `[hash]` substitution can be used to include a build-specific hash in the filename, however it's even better to use the `[chunkhash]` substitution which includes a chunk-specific hash in the filename.
25
+
A simple way to ensure the browser picks up changed files is by using `output.filename`[substitutions](/configuration/output#output-filename). The `[hash]` substitution can be used to include a build-specific hash in the filename, however it's even better to use the `[contenthash]` substitution which is the hash of the content of a file, which is different for each asset.
25
26
26
27
Let's get our project set up using the example from [getting started](/guides/getting-started) with the `plugins` from [output management](/guides/output-management), so we don't have to deal with maintaining our `index.html` file manually:
0 commit comments