Skip to content

Cache documentation before Worker execution - #13

Merged
zayenz merged 4 commits into
mainfrom
feature/docs-workers-cache
Sep 30, 2026
Merged

zayenz merged 4 commits into
mainfrom
feature/docs-workers-cache

Conversation

@zayenz

@zayenz zayenz commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Enable native Cloudflare Workers Cache before Worker execution, with deployment-isolated cache namespaces. Cache hits avoid Worker CPU and R2 reads; Cloudflare still counts them as Worker requests.

Documentation and redirects use a one-day browser TTL, 30-day edge TTL, seven-day stale-while-revalidate, and 30-day stale-if-error. Explicit revisions remain immutable for one year. Sitemaps and robots retain shorter TTLs. Accept and test the native cache behavior for HEAD with Range (206 with range metadata and no body).

Validation: 34 Worker tests and canary/production dry-runs passed. Staging deployment and the complete smoke suite passed: https://github.com/Gecode/gecode.github.io/actions/runs/36679599037. A fresh staging URL returned MISS, HIT, HIT with the one-day browser header. Earlier execution logs confirmed one execution for three requests. Short-TTL SWR and live revision rollback are not yet exercised against the native cache.

Production requires the cloudflare-production environment approval. The runbook retains Fastly as an optional outer CDN to reduce Cloudflare request counts.

@zayenz
zayenz deployed to cloudflare-staging September 30, 2026 06:42 — with GitHub Actions Active
@zayenz
zayenz merged commit 6dac9b3 into main Sep 30, 2026
3 checks passed
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