Repository navigation
[Blazor] Enable WebAssembly boot resource retries by default - #70799
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
The default startup change lacks a permanent browser regression test verifying that an unusable cached fingerprinted resource triggers a reload fetch with integrity checking and allows Blazor to render without explicit retry configuration.
1 open issue
What changed in this PR
Enables the runtime’s default retry behavior for Blazor WebAssembly boot resources, allowing recovery from unusable cached responses described in #69488.
Changes:
- Removes Blazor’s
enableDownloadRetry: falseoverride. - Leaves download concurrency unchanged and preserves application opt-out through
configureRuntime.
| File | Description |
|---|---|
src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts |
Removes the retry-disabling loader setting so runtime defaults apply. |
Review effort: Balanced
|
/review |
|
/backport to release/11.0 |
|
Started backporting to |
|
✅ No documentation PR was created. Confidence that documentation is needed: 35% No docs needed: bug-fix-style change enabling runtime download retries by default, with no documented behavior affected. A human could optionally mention the retry behavior in the Blazor WebAssembly caching and integrity article. Documentation surfaces considered
|

[Blazor] Enable WebAssembly boot resource retries by default
Let the runtime retry failed Blazor WebAssembly boot resource downloads.
Description
Remove Blazor's
enableDownloadRetry: falseoverride so the runtime can recover from a cached empty or error response for a fingerprinted boot resource (dotnet/runtime#136527). Healthy cache hits still use the cache; a failedforce-cachefetch can be retried withcache: "reload"without disabling integrity checks. This also enables ordinary bounded runtime retries. Download concurrency is unchanged, and apps can still opt out throughconfigureRuntime.Validation
npm run build --workspace src/Components/Web.JS— passed for Debug and Release on currentmainwith the fix, after rebuilding the SignalR workspaces.src/Components/Web.JS,..\..\..\node_modules\.bin\eslint.cmd -c .\src\.eslintrc.js .\src\Platform\Mono\MonoPlatform.ts— passed on currentmainwith the fix.main, ran the reporter's cache-recovery scenario with local Playwright/Chrome and a published .NET 12 standalone app. The original bundle stayed stuck on a cached empty HTTP 200 or 404 after origin repair. The patched bundle performed exactly onereloadfetch with integrity still enabled and rendered on Mono. The next boot used the healthy cache without another origin request, and explicit opt-out preserved the no-retry behavior. CoreCLR passed the download assertions, but end-to-end rendering was not validated with that older checkout's Blazor bundle. The browser repro was not rerun after moving onto currentmain.Fixes #69488
This change and PR description were prepared with GitHub Copilot.