Skip to content

Append Hashes To Blazor Published Files #47575

Closed
Closed
@elepner

Description

@elepner

Is there an existing issue for this?

  • I have searched the existing issues

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:
image
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

Metadata

Metadata

Assignees

Labels

Pillar: Technical DebtPriority:1Work that is critical for the release, but we could probably ship withoutarea-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-static-web-assets

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions