-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
I use the default template "Blazor Web App". If I refresh the browser nearly all files will be completly reloaded. Only for a few files (blazor.web.js, favicon.png) I get the 304 - not modified.

I focused on "bootstrap.min.46ein0sx1k.css". The browser requests with header content-encoding='gzip, deflate, br, zstd'. The server response with a gzip-encoded content and adds two 'Etag's to the headers. I looked in BlazorAppNet9.staticwebassets.endpoint.json and found that all variants using 'gzip' have two 'etag's. If I remove the first etag-entry, it works and the server response with an 304 (not modified). I also tried to changed the request-header for getting no gzip-encoded content - this works too.


Expected Behavior
In BlazorAppNet9.staticwebassets.endpoint.json the selector for gzip shouldn't have two 'ETag's.

Steps To Reproduce
-
Create a new "Blazor Web App"
- .NET 9
- Auth: no
- configure for https: yes
- interactive render mode: server
- interactivity ___location: global
- include sample pages: yes
- don't use top-level statements: no
- enlist int .net aspire orchestration: no
-
Start using a browser which requests with content-encoding='gzip'
Exceptions (if any)
No response
.NET Version
9.0.302 (libs are on 9.0.7)
Anything else?
No response