[Workers] Document Workers Caching#30018
Open
danlapid wants to merge 1 commit intoproductionfrom
Open
Conversation
Contributor
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
Contributor
5 tasks
ff4b423 to
6482d35
Compare
Add docs for Workers Caching — caching HTTP responses from a Worker so that Cloudflare serves them without executing the Worker. New pages under src/content/docs/workers/cache/: - configuration.mdx — enabling caching, Cache-Control semantics, TTL and stale-while-revalidate guidance, cf-cache-status, Cache-Tag - cache-keys.mdx — what the cache key includes, multi-tenant safety with ctx.props, invalidating cache across deployments - purge.mdx — ctx.cache.purge() with tags, pathPrefixes, and purgeEverything; versioned purging with the version metadata binding - debugging.mdx — diagnosing why caching is not behaving as expected - limitations.mdx — unsupported scenarios, limits, relationship to zone cache, the Cache API, and fetch() subrequests index.mdx as a landing page with a quickstart showing wrangler deploy + curl observing HIT/MISS, plus a Durable Object wrapping pattern for caching DO responses. workers/platform/pricing.mdx gets a worked example showing CPU savings with an 80% cache hit rate.
1819b5e to
fe7dc09
Compare
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.
Add docs for Workers Caching — caching HTTP responses from a Worker so that Cloudflare serves them without executing the Worker.
New pages under src/content/docs/workers/cache/:
index.mdx as a landing page with a quickstart showing wrangler deploy + curl observing HIT/MISS, plus a Durable Object wrapping pattern for caching DO responses.
workers/platform/pricing.mdx gets a worked example showing CPU savings with an 80% cache hit rate.
Summary
Screenshots (optional)
Documentation checklist