Skip to content

[Performance] Update Store UI asset references to use fingerprinted URLs via @Assets[...] #13

@VancouverBen

Description

@VancouverBen

Summary

Adopt the Blazor-recommended asset referencing pattern for .NET 9+ (@Assets["..."]) in the Store Blazor Server app for CSS/JS (and any other static assets referenced from components/layouts).

Why

With MapStaticAssets, ASP.NET Core fingerprints assets and sets caching headers (including immutable) so browsers cache assets indefinitely until content changes. Using @Assets["..."] ensures the app emits the correct fingerprinted URL.

Guidance (docs)

Acceptance criteria

  • CSS/JS references in root components/layouts use @Assets["{PATH}"] where applicable.
  • No regressions in styling or script loading.
  • Validate that ImagePrefix guidance remains intact for product images (do not break existing ImagePrefix usage).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions