Repository navigation
fix: Update service worker to fetch dotnet.js instead of dotnet.boot.js for .NET 10 (backport #1004) - #1005
Merged
jeromelaban merged 6 commits intoNov 19, 2025
Conversation
… for .NET 10 compatibility Co-authored-by: jeromelaban <[email protected]>
Co-authored-by: jeromelaban <[email protected]>
…etsFolder Co-authored-by: jeromelaban <[email protected]>
Co-authored-by: jeromelaban <[email protected]>
|
|
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.
In .NET 10,
dotnet.boot.jswas merged intodotnet.jsfor performance. The service worker still attempted to fetch the non-existent file, causing a 404 error when PWA is enabled.Changes
_framework/dotnet.boot.jsto_framework/dotnet.jsdotnet.jsinstead ofdotnet.boot.js, and fixeduno-config.jspath to include{PackageAssetsFolder}/prefix for correct PWA caching.github/workflows/ci.ymlandbuild/ci/dotnet-install.ymlThe boot configuration extraction logic (regex matching
/*json-start*/and/*json-end*/markers) remains unchanged, as the format is identical between files.Warning
<issue_title>[ServiceWorker] Error processing blazor.boot.json: Failed to fetch dotnet.boot.js: 404</issue_title>
<issue_description>### Current behavior 🐛
When PWA is enabled, the service worker shows the following error message:
This is expected as in net10, this file does not exist anymore.
Expected behavior 🎯
No error message.
How to reproduce it (as minimally and precisely as possible) 🔬
No response
Workaround 🛠️
No response
Renderer 🎨
Affected platforms 📱💻🖥️
No response
Uno.Sdk version (and other relevant versions) 📦
10.0.10
IDE version 🧑💻
No response
Anything else we need to know? 💬
No response</issue_description>
Comments on the Issue (you are @copilot in this section)
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
This is an automated backport of #1004