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).