Repository navigation
perf: serve static assets without the Worker; web vitals and stage timing - #121
Merged
Merged
Conversation
Static /_astro, /images and favicon PNGs skip run_worker_first so they no longer pay Worker cold starts (150-670 ms server time on fresh connections); /_astro gets immutable caching. HTML stays Worker-first. Adds data-vitals to every snapshot tracker tag (factory source: ios-landings#47) and sampled api.stage_timing on /api/* and /v1/personal/*, inert without the ingest key. sass-maker/app-health#83. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sarthakagrawal927
force-pushed
the
speed/83-calorie
branch
from
October 11, 2026 12:12
9b1ad14 to
a6e81de
Compare
Member
Author
|
Deployed to production via |
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; Claude reviewed every line (snapshot HTML diffs are exactly 16
+data-vitalstokens) and ranpnpm quality(green).Measured cause (before, production, this Mac, SIN/HKG)
run_worker_first: truesends every static file through the Worker; on fresh connections the isolate is cold. Server time (TTFB minus TLS):/images/screens/today.webp164-672 ms,/favicon-32.png166-544 ms,/154-450 ms; ~40 ms warm.Change
wrangler.jsonc:run_worker_first: ["/*", "!/_astro/*", "!/images/*", "!/favicon-32.png", "!/favicon-64.png"]. None are handled byworker.tsoragent-edge.mjs; Calorie adds Worker security headers only on/api/*and/v1/*. HTML routes unchanged.marketing/_headers: immutable caching for content-hashed/_astro/*.data-vitalson all 16 snapshot tracker tags; the factory source change is Opt the factory App Health tracker into web vitals ios-landings#47 so the next sync keeps it.api.stage_timing(APP_HEALTH_STAGE_SAMPLE_RATE, default 0.1) on/api/*and/v1/personal/*, Hono templates only, shared cached client, fail-open, inert without the ingest key.After numbers will be posted on this PR after deploy.
🤖 Generated with Claude Code