-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use [contenthash]
over [hash]
and [chunkhash]
for better long term caching
#2096
Comments
@evilebottnawi @montogeek does this mean chunkhash should be removed from the exampled in the guide and replaced with contenthash with only a mention that sometime it existed so people know it is still supported ? |
@FadySamirSadek alright, just backward compatibility |
@FadySamirSadek friendly ping, can we solve this problem faster? Looks like many people faced with this |
@evilebottnawi will finish it by the end of today |
/cc @FadySamirSadek |
I had this config and was running into the issue where a change in
Changing the output to |
@Streemo I am working on fixing the documentation of |
@FadySamirSadek Awesome. One thing that confused me were the numbers added at the front of some of the content hashes e.g. **2.**9ff51031b7fe51cc21e6.js.gz, **1.**38ffde1f4124434ec546.js.gz which I noticed are not present in the [chunkhash]. Out of curiosity, are these ids of some sort and why are they required? |
I think this can be closed via #2098 |
If I'm not mistaken, this currently outputs the same hash. But https://webpack.js.org/guides/caching/ and webpack/webpack.js.org#2096 recommends "[contenthash]".
…ack/webpack.js.org#2096) Signed-off-by: Andrew Welch <[email protected]>
- Added `--no-tablespaces` to the mysqldump command options to work around changes in MySQL Fixed - Modern config only for local dev, [fixing multi-compiler issues](webpack/webpack-dev-server#2355) with HRM - Fix redis session config to use `App::sessionConfig()` Changed - Remove `[hash]` from dev config to eliminate potential [memory errors](webpack/webpack-dev-server#438) - Use `[contenthash]` in production instead of [hash or chunkhash](webpack/webpack.js.org#2096) - Readme file to give proper credit - - -
We used to override the output filename but this was a misunderstanding of an error (due to webpacke(r) incompatibles versions) https://medium.com/@web_developer/hash-vs-chunkhash-vs-contenthash-e94d38a32208 webpack/webpack.js.org#2096 Context: openfoodfoundation#10631 (review)
For long term caching better use
[contenthash]
over[chunkhash]
.From slack
Ref on issue in
webpack
webpack/webpack#7138.Example of problem webpack-contrib/mini-css-extract-plugin#117.
The text was updated successfully, but these errors were encountered: