Skip to content

[Static web assets] Define static web asset endpoints in the SDK and generate an endpoints manifest #54873

Closed
@javiercn

Description

@javiercn

Tracks dotnet/sdk#39636

  • Introduces a StaticWebAssetEndpoint to represent the endpoints where any given static web asset must be available.
  • Defines endpoints for all static web assets in the app.
    • Precomputes all the headers for all endpoints Content-Type, Content-Length, ETag, Last-Modified, Accept-Ranges
  • Applies Content-Negotiation to compressed assets.
    • Maps the compressed assets to all the routes available to their respective related asset.
      • Duplicates the endpoints and points them to the compressed versions including Content-Encoding and Vary headers as well as a Content-Encoding selector that is used at runtime to disambiguate what asset to serve for an incoming request.
    • Updates compressed asset endpoints with Content-Encoding and Vary headers.

Metadata

Metadata

Assignees

Labels

area-blazorIncludes: Blazor, Razor Componentsarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatestask

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions