Repository navigation
docs(design): content-hashed URLs for the browser runtimes (#578) - #627
Merged
Merged
Conversation
Design for serving citry.js and the Events and i18n runtimes from URLs that contain a hash of their bytes, so browsers can keep them. Covers the stable aliases, the shared-cache fallback for old hashes, the reload rule when a runtime is missing, rolling deploys, the artifacts that change, and the security review routes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… URLs (#578) Each of the seven open questions in the design is now a decision, and the sections that depended on the answers follow them: - URL shape is `citry.<sha256>.js`. - The shared runtime has one hashed URL, which the Events serialization links too, so there is no separate hashed Events route. - The stable URLs stay in every release. - A page that answered a request other than GET or HEAD never reloads. The app passes the method as `request_method` to `serialize()`, and the server writes a `canReload` value into the start script and the configuration JSON. - A public `Citry.runtime_url()` returns the hashed URL. - Saving the runtime to the shared cache stays automatic, with a 30-day expiry passed through `_store_if_missing`. - Exporting the i18n runtime in static export is a separate change. The error modes, the file list, the tests, the spec and plan updates, and the checks in sections 7 and 9 are updated to match. The pull request stays a draft that holds until after 0.8.0. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member
Author
|
The design doc now records the maintainer's decisions on the seven open questions (commit 2999e07). Section 6 lists them, and the other sections follow them. The PR stays a draft and holds until after 0.8.0.
Decision 4 needed one detail the question did not settle: how Citry learns the request method. The doc proposes the |
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.
Design for review; hold until after 0.8.0 is released.
🤖 Generated with Claude Code