Repository navigation
[Wasm] Recover invalid cached boot resources - #135925
Open
vendasankarsf3945 wants to merge 2 commits into
Open
vendasankarsf3945 wants to merge 2 commits into
vendasankarsf3945 wants to merge 2 commits into
Conversation
|
Azure Pipelines: Successfully started running 3 pipeline(s). 13 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Member
Is this the correct issue link? |
Contributor
|
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara |
This was referenced Oct 16, 2026
Closed
vendasankarsf3945
marked this pull request as ready for review
October 19, 2026 08:51
vendasankarsf3945
requested review from
ilonatommy,
lewing,
maraf and
pavelsavara
as code owners
October 19, 2026 08:51
Member
|
The underlying problem of storing stale 404 or empty file via Does |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[Wasm] Recover invalid cached boot resources
Summary
Fingerprint-named WebAssembly boot resources are loaded with
cache: "force-cache". If the browser stores an unusable response for one of these resources, such as an empty response, non-success response, or a response rejected by integrity validation, subsequent application loads can continue reusing the same cached entry. The application then cannot start until the user manually clears the site's browser data.Changes
This change adds cache recovery to the Mono and shared/native WebAssembly asset loaders.
For resources using
force-cache, the loader now:cache: "reload".The recovery request preserves the existing URL, credentials, integrity metadata, content-type handling, and configured fetch abstraction. Resources that do not use
force-cacheretain their existing behavior.The asset's cache mode is also changed to
reloadafter an unusable cached response is detected, preventing the existing higher-level retry path from returning to the same invalid cache entry.Testing
The browser test host can inject a bounded number of empty, cacheable responses for the client assembly. The added Chromium tests verify that:
force-cachefailure is not retried by this recovery path.Validated with the
Wasm.Build.Testsreal-browser Blazor test infrastructure using Chromium.Fixes dotnet/aspnetcore#69488