Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Feb 4, 2024
1 parent 41f10f0 commit 33f4930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ with `ignoreTrailingSlash` set to `true`.

Default: `undefined`

To enable `hash`, the `wildcard` option must first be disabled explicitly. When enabled, `hash` lets the user access assets dynamically using the decorated `getHashedAsset` function. This in turn makes possible the usage of a very high `maxAge` so that the content can be cached as long as possible. If any modifications are made to a file, its hash will simply be recalculated during the next startup and the cache will bust for that asset.
To enable `hash`, the `wildcard` option must be turned off. When enabled, `hash` lets the user access assets dynamically using the decorated `getHashedAsset` function. This in turn makes possible the usage of a very high `maxAge` so that the content can be cached as long as possible. If any modifications are made to a file, its hash will simply be recalculated during the next startup and the cache will bust for that asset.

**Note:** A custom script can be used to generate the hashes in advance to speed up cold start times, ideally during the build phase.

Expand Down

0 comments on commit 33f4930

Please sign in to comment.