Skip to content
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

Change chunkhash to contenthash #24

Merged
merged 1 commit into from
Oct 1, 2020
Merged

Conversation

js62789
Copy link
Contributor

@js62789 js62789 commented Aug 28, 2020

When using [chunkhash], the hash included in the filename is specific to the chunk's entrypoint, which means that a single change in a single file could automatically create new filenames for all files within the chunk, invalidating cache unnecessarily. I've changed it to use [contenthash] which is the most effective hash to use for caching.

See webpack/webpack.js.org#2096 for more.

Copy link

@ty-grubber ty-grubber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting 👍

@js62789 js62789 merged commit ff97d1b into master Oct 1, 2020
@js62789 js62789 deleted the jsmith/web-2277-contenthash branch October 1, 2020 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants