Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Tracked by #52824
javiercn opened this issue Apr 1, 2024 · 1 comment
Assignees
Labels
area-blazor Includes: Blazor, Razor Components area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates task
Milestone

Comments

@javiercn
Copy link
Member

javiercn commented Apr 1, 2024

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.
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Apr 1, 2024
@javiercn javiercn added the task label Apr 1, 2024
@javiercn javiercn self-assigned this Apr 1, 2024
@javiercn javiercn added the area-blazor Includes: Blazor, Razor Components label Apr 1, 2024
@javiercn javiercn added this to the 9.0-preview4 milestone Apr 1, 2024
@javiercn
Copy link
Member Author

dotnet/sdk#39636

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates task
Projects
None yet
Development

No branches or pull requests

2 participants
@javiercn and others