Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

[release/11.0] [Blazor] Enable WebAssembly boot resource retries by default - #70813

Merged
maraf merged 1 commit into
release/11.0from
backport/pr-70799-to-release/11.0
Nov 30, 2026
Merged

maraf merged 1 commit into
release/11.0from
backport/pr-70799-to-release/11.0

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Backport of #70799 to release/11.0

/cc @pavelsavara

Let the runtime retry failed Blazor WebAssembly boot resource downloads.

Description

Remove Blazor's enableDownloadRetry: false override so the .NET 11 runtime can retry a failed force-cache fetch with cache: "reload" (dotnet/runtime#136965). The retry keeps integrity checking enabled. Download concurrency is unchanged, and apps can still opt out through configureRuntime.

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
  • No

Yes
Net11 dotnet/runtime#122101
Net10 dotnet/runtime#122442

The failure occurs when fingerprinted boot assets use force-cache.

Risk

  • High
  • Medium
  • Low

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 (required)
  • Automated

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 empty 200 or a 404 for 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-checked cache: "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?

  • Yes
  • No
  • N/A

No packaging changes.

The PR description was prepared with GitHub Copilot.

@github-actions
github-actions Bot requested a review from a team as a code owner November 24, 2026 16:11
@pavelsavara pavelsavara self-assigned this Nov 24, 2026
@pavelsavara pavelsavara added the area-blazor Includes: Blazor, Razor Components label Nov 24, 2026
@pavelsavara pavelsavara added this to the 11.0.x milestone Nov 25, 2026
@pavelsavara pavelsavara added the Servicing-approved Shiproom has approved the issue label Nov 26, 2026
@pavelsavara

Copy link
Copy Markdown
Member

servicing approved for Jan

@dotnet-policy-service

Copy link
Copy Markdown
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.

@maraf
maraf merged commit 14c1800 into release/11.0 Nov 30, 2026
45 checks passed
@maraf
maraf deleted the backport/pr-70799-to-release/11.0 branch November 30, 2026 10:58
@dotnet-policy-service dotnet-policy-service Bot removed this from the 11.0.x milestone Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components Servicing-approved Shiproom has approved the issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants