Repository navigation
[release/11.0] [Blazor] Enable WebAssembly boot resource retries by default - #70813
Merged
Merged
Conversation
akoeplinger
approved these changes
Nov 25, 2026
maraf
approved these changes
Nov 25, 2026
Member
|
servicing approved for Jan |
Contributor
|
Hi @github-actions[bot]. This PR was just approved to be included in the upcoming servicing release. Somebody from the @dotnet/aspnet-build team will get it merged when the branches are open. Until then, please make sure all the CI checks pass and the PR is reviewed. |
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.
Backport of #70799 to release/11.0
/cc @pavelsavara
Let the runtime retry failed Blazor WebAssembly boot resource downloads.
Description
Remove Blazor's
enableDownloadRetry: falseoverride so the .NET 11 runtime can retry a failedforce-cachefetch withcache: "reload"(dotnet/runtime#136965). The retry keeps integrity checking enabled. Download concurrency is unchanged, and apps can still opt out throughconfigureRuntime.Fixes #69488
Customer Impact
A transient missing or empty fingerprinted boot resource can leave an unusable entry in the browser's HTTP cache. The app can then fail to start on every reload even after the origin serves the correct file. With this fix, the runtime can fetch the repaired asset and refresh the browser cache without requiring the user to clear site data.
Regression?
Yes
Net11 dotnet/runtime#122101
Net10 dotnet/runtime#122442
The failure occurs when fingerprinted boot assets use
force-cache.Risk
This removes a single Blazor override and uses the runtime's existing bounded retry policy. Healthy cache hits are unchanged. Transient failures can now generate extra requests and take slightly longer to report if retries are exhausted.
Verification
Manual (original .NET 12 branch,
f0914fb07d; not rerun on this .NET 11 backport): Published a standalone Blazor WebAssembly app and used Playwright with Chrome 158 to seed the real HTTP cache with an empty200or a404for a fingerprinted assembly. After the origin was repaired, the parent commit stayed stuck on Mono in all 10 runs per response. The fixed commit recovered in all 10 runs per response with exactly one integrity-checkedcache: "reload"fetch. The counter was interactive, and the next page load reused the repaired cache without fetching the assembly from the origin. On CoreCLR, both commits recovered in all three runs per response, so that comparison did not reproduce a regression. The production JS build (npm run build:production --workspace=@microsoft/microsoft.aspnetcore.components.web.js) passed on the original branch.Automated (.NET 11 backport): The Components E2E run passed the Linux Mono client/WebAssembly and CoreCLR lanes. The Linux Mono server lane failed one existing virtualization test with the same assertion tracked in dotnet/aspnetcore#68772. No dedicated cache-recovery CI test was added.
Packaging changes reviewed?
No packaging changes.
The PR description was prepared with GitHub Copilot.