-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Static Web Assets cache busting mechanism #31922
Copy link
Copy link
Closed as not planned
Labels
✔️ Resolution: DuplicateResolved as a duplicate of another issueResolved as a duplicate of another issuePillar: Technical Debtarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing onefeature-css-isolationThis issue is related to CSS Isolation featureThis issue is related to CSS Isolation feature
Milestone
Metadata
Metadata
Assignees
Labels
✔️ Resolution: DuplicateResolved as a duplicate of another issueResolved as a duplicate of another issuePillar: Technical Debtarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing onefeature-css-isolationThis issue is related to CSS Isolation featureThis issue is related to CSS Isolation feature
Type
Fields
Give feedbackNo fields configured for issues without a type.
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.cssbyProjectName.styles.css?hash=123doesn'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';?