Closed
Description
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
andVary
headers as well as aContent-Encoding
selector that is used at runtime to disambiguate what asset to serve for an incoming request.
- Duplicates the endpoints and points them to the compressed versions including
- Updates compressed asset endpoints with
Content-Encoding
andVary
headers.
- Maps the compressed assets to all the routes available to their respective related asset.