cloudflare · Cloudflare Workers Docs
Workers Using the Cache API
Demonstrates how to implement the Cache API within a Cloudflare Worker to programmatically store and retrieve responses from Cloudflare's edge cache.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Using the Cache API
Demonstrates how to implement the Cache API within a Cloudflare Worker to programmatically store and retrieve responses from Cloudflare's edge cache.
When To Use
Use when you need to implement custom caching logic to store and retrieve HTTP responses at the edge using Cloudflare Workers.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-examples-cache-api-using-the-workflow-guide.md | A markdown guide demonstrating how to use the Cloudflare Workers Cache API to store and retrieve responses. | Questions about a markdown guide demonstrating how to use the Cloudflare Workers Cache API to store and retrieve responses. |
examples/workers-examples-cache-api-using-the-cloudflare-workers-cache-api-fetch.text | A JavaScript example demonstrating how to use the Cloudflare Workers Cache API to check for cached responses and store new ones from the origin. | Exact payloads, commands, or snippets shown in A JavaScript example demonstrating how to use the Cloudflare Workers Cache API to check for cached responses and stor... |
examples/workers-examples-cache-api-using-the-cloudflare-workers-cache-api-fetch-2.text | A JavaScript example demonstrating how to use the Cloudflare Workers Cache API to check for and store responses in the default cache. | Exact payloads, commands, or snippets shown in A JavaScript example demonstrating how to use the Cloudflare Workers Cache API to check for and store responses in th... |
examples/workers-examples-cache-api-using-the-cloudflare-workers-cache-api-python.text | A Python implementation of a Cloudflare Worker that demonstrates how to use the Cache API to store and retrieve responses. | Exact payloads, commands, or snippets shown in A Python implementation of a Cloudflare Worker that demonstrates how to use the Cache API to store and retrieve respo... |
examples/workers-examples-cache-api-using-the-cloudflare-workers-hono-cache-api.text | A Hono framework implementation demonstrating how to use the Cloudflare Workers Cache API with a built-in cache helper. | Exact payloads, commands, or snippets shown in A Hono framework implementation demonstrating how to use the Cloudflare Workers Cache API with a built-in cache helper. |
What This Skill Covers
- Use the Cache API to store responses in Cloudflare's cache.
- Main sections:
Tags.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.cloudflare.com/workers/examples/cache-api
