Repository navigation
perf: serve static assets without the Worker; web vitals and stage timing - #82
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
reader | 9cfbc1c | Oct 11 2026, 12:12 PM |
Static build/media dirs (/_astro, /assets, /images, /footer-art) skip run_worker_first so they no longer pay Worker cold starts (120-700 ms server time on fresh connections). Hashed dirs get immutable caching. HTML routes stay Worker-first for markdown negotiation and agent surfaces. Adds data-vitals to the landing tracker and sampled api.stage_timing logs on /api/links, /api/articles, /api/mcp and /api/keys (inert without the ingest key). sass-maker/app-health#83. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gate Extract sample-rate parsing and route-safety checks from stageTimingMiddleware (CCN 19 > 15). Behavior unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sarthakagrawal927
force-pushed
the
speed/83-reader
branch
from
October 11, 2026 12:12
770de9f to
9cfbc1c
Compare
Member
Author
|
Deployed to production via the manual deploy.yml workflow (run 38138882653) from main. Version c0239e9e-404c-4600-b9ef-8c57b445a513. Rollback: 361d797f-980c-4952-a64a-4b16637a5265. Verified: home 200, data-vitals present, no console errors. Complexity fix (stageTimingMiddleware CCN 19 to under 15) pushed on this branch before merge. |
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.
Part of the fleet speed program (sass-maker/app-health#83). Codex drafted the implementation; Claude reviewed every line and re-ran typecheck, tests (92/92) and biome.
Measured cause (before, production, this Mac, SIN/HKG)
run_worker_first = ["/*"]sends every static file through the Worker. On fresh connections the isolate is cold: server time (TTFB minus TLS) for/_astro/index.*.css132-412 ms, LCP image/footer-art/reader-precise-original-v1.webp119-388 ms, landing HTML 230-707 ms; ~45 ms when warm.Change
wrangler.toml: keep/*Worker-first, exclude/_astro/*,/assets/*,/images/*,/footer-art/*(verified in the builtdist/; nothing inworker.tsoragent-edge.mjshandles them). Security headers still come from_headers/*.public/_headers:immutable1-year caching for content-hashed/_astro/*and/assets/*.data-vitalson the landing App Health tracker (inert until App Health #186 deploys).api.stage_timing(APP_HEALTH_STAGE_SAMPLE_RATE, default 0.1) on/api/links,/api/articles,/api/mcp,/api/keys, Hono route templates only, sharing the existing cached client. Inert until the ingest key is active (Activate Reader App Health endpoint key and verify live receipt #59).After numbers will be posted on this PR after deploy.
🤖 Generated with Claude Code