Skip to content

perf: edge-cache root HTML 5 min + 60s SWR - #133

Merged
sarthakagrawal927 merged 3 commits into
mainfrom
agent/edgecache-swe-interview-prep
Oct 10, 2026
Merged

sarthakagrawal927 merged 3 commits into
mainfrom
agent/edgecache-swe-interview-prep

Conversation

@sarthakagrawal927

Copy link
Copy Markdown
Member

Adds s-maxage=300, stale-while-revalidate=60 to the SPA shell (/, /index.html); browsers keep max-age=0. Context and numbers: sass-maker/app-health#83. Worst-case post-deploy staleness is about 6 minutes; verified after deploy.

Header-only change, drafted by Claude (the one-file edit was not delegated to Codex).

🤖 Generated with Claude Code

sarthakagrawal927 and others added 3 commits October 10, 2026 10:10
Pages' default must-revalidate caused cf-cache-status EXPIRED and a far-colo
origin round trip on every request (app-health#83). Browsers still always
revalidate; the edge may serve a copy for s-maxage=300 plus 60s SWR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sarthakagrawal927
sarthakagrawal927 merged commit 2f017b7 into main Oct 10, 2026
1 check passed
@sarthakagrawal927
sarthakagrawal927 deleted the agent/edgecache-swe-interview-prep branch October 10, 2026 04:57
sarthakagrawal927 added a commit that referenced this pull request Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant