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

Identical chunk hash names, different file contents #3341

Closed
monfa-red opened this issue Dec 1, 2016 · 5 comments
Closed

Identical chunk hash names, different file contents #3341

monfa-red opened this issue Dec 1, 2016 · 5 comments

Comments

@monfa-red
Copy link

monfa-red commented Dec 1, 2016

OS?

Kubuntu 16.04

Versions.

angular-cli: 1.0.0-beta.21
node: 6.9.1
os: linux x64

Repro steps.

ng build --prod --aot

The log given by the failure.

It doesn't fail!

Mention any other details that might be useful.

The generated hashed chunks have the same filenames compare to the previous build when the contents of the files are different!!

Let say I build the app using ng build --prod --aot and one of the chunk names is 16.25b41a1d87472f09d7df.chunk.js , then I change/update code and build it again, now the main chunk gets a different hash name but some of the chunks keep the same previous name although they have a slightly different content, this causes problem since the old chunk gets cached in our users browsers.

It usually happens when I add a new component to the app and run the AoT build

@pavel-mxsf
Copy link

@monfa-red
Copy link
Author

@pavel-mxsf seems like it reflects the same hashing issue, any solution to fix it for angular-cli?

@grizzm0
Copy link
Contributor

grizzm0 commented Dec 1, 2016

Already being discussed in #3311

@hansl
Copy link
Contributor

hansl commented Dec 16, 2016

Dupe of #3311

@hansl hansl closed this as completed Dec 16, 2016
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants