Skip to content

Static Web Assets cache busting mechanism #31922

@stefanloerwald

Description

@stefanloerwald

Is your feature request related to a problem? Please describe.

Browser cache files (partially depending on the server settings), which can lead to the situation that a scoped CSS file changed, but this is not picked up, because the file name didn't change. Replacing ProjectName.styles.css by ProjectName.styles.css?hash=123 doesn't produce the usual cache-busting mechanism, because the contents of that file (e.g. @import _content/library/library.bundle.scp.css) didn't change, only the file referenced by the import changed in content.

Describe the solution you'd like

Would it be possible to automatically calculate a file hash of the scoped CSS parts and import them with @import '_content/library/library.bundle.scp.css?hash=123';?

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: DuplicateResolved as a duplicate of another issuePillar: Technical Debtarea-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-css-isolationThis issue is related to CSS Isolation feature

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions