-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Append Hashes To Blazor Published Files #47575
Comments
Thanks for the suggestion, @elepner. It could be more complicated than just changing the filenames, though. If the images (etc) had their filenames changed, what would happen to code like Would you need to change all your existing code to work with this? |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
As far as I know, modern JS bundlers are capable of tracking all dependencies, including images and replace URLs with the correct hashed ones. However, executables download is the most critical issue since the app just fails to load and there's little room for manoeuvre. |
The issue is that there isn't a JS bundler involved here. These references appear inside |
I fully understand that, I'm just pointing out how the other frameworks address other types of assets. It'd require from Blazor builder to keep the graph of static asset dependencies, but I suppose this feature is beyond the scope this feature request. |
Thanks for contacting us. We're moving this issue to the |
+1 here, we've seen this intermittently and it's not an ideal user experience |
@javiercn should this be cloased already (as done) ? |
This is now done. |
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
When one deploys Blazor application to CDN the application sometimes fails to load because integrity check fails. That happens because there's significant delay between deployment and CDN content update. There's little room to control how the updated files propagate.
Describe the solution you'd like
The ultimate (and maybe only) solution to this problem would be to attach hash to every file name like bundlers in JS Frameworks do. It can be hash of the file or hash connected to the build itself. Here's example of Angular production build:
I know it's possible to implement DIY solution for that, but it's something that would be nice to have in Blazor by default for everyone.
Additional context
No response
The text was updated successfully, but these errors were encountered: