Repository navigation
fix: Reload a uno-config.js cached from an earlier deployment - #1108
Merged
Merged
Conversation
uno-config.js sits outside the hashed package folder, so a host or browser can serve a copy that names another package. Import the one matching this package. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013terw2KRvw8e64cogQymUL
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013terw2KRvw8e64cogQymUL
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013terw2KRvw8e64cogQymUL
MartinZikmund
force-pushed
the
dev/mazi/stale-config-reload
branch
from
October 9, 2026 11:44
c52d3e9 to
171e2e1
Compare
MartinZikmund
enabled auto-merge
October 10, 2026 05:31
kazo0
approved these changes
Oct 14, 2026
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
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.
Follow-up to #1077.
Problem
Since #1077,
uno-config.jssits next toindex.html, outside the hashed package folder. When a host or the browser caches root files, which the template'sstaticwebapp.config.jsondoes for an hour, a returning visitor can get a freshindex.htmlwith an olderuno-config.js. A normal reload revalidates only the page itself. The stale config names the previouspackage_<hash>, which is usually gone after a redeploy, so the app fails to start.Fix
After importing
../uno-config.js, the bootstrapper compares the config'suno_app_basefolder with the package folder thatuno-bootstrap.jswas loaded from (the<script type="module">inindex.html). If they differ, it imports../uno-config.js?v=<package>instead. The query is stable within a deployment, so that copy stays cacheable.uno-bootstrap.jsisn't loaded by a script element (embedded mode, custom hosts).Tests
Uno.Wasm.Tests.ResilientLoadinggets a third load where the server answers/uno-config.js(without a query) with another package's name. Without the fix it fails ("did not start within 120s"). With the fix it starts and logs the reload.Spec:
specs/008-root-uno-config/spec.md(FR-2a, edge cases, validation).🤖 Generated with Claude Code
https://claude.ai/code/session_013terw2KRvw8e64cogQymUL