cloudflare · Cloudflare Workers Docs
Workers Cache POST requests
Implementation guide for using the Cloudflare Cache API to store and retrieve responses from POST requests within a Worker.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Cache POST requests
Implementation guide for using the Cloudflare Cache API to store and retrieve responses from POST requests within a Worker.
When To Use
Use when you need to implement caching strategies for POST requests to improve performance and reduce origin load in Cloudflare Workers.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-examples-cache-post-request-requests-workflow-guide.md | A markdown guide demonstrating how to use the Cloudflare Workers Cache API to cache POST requests. | Questions about a markdown guide demonstrating how to use the Cloudflare Workers Cache API to cache POST requests. |
examples/workers-examples-cache-post-request-requests-cloudflare-workers-cache-po.text | A JavaScript example demonstrating how to use the Cloudflare Workers Cache API to store and retrieve responses from POST requests using SHA-256 hashing for cache keys. | Exact payloads, commands, or snippets shown in A JavaScript example demonstrating how to use the Cloudflare Workers Cache API to store and retrieve responses from P... |
examples/workers-examples-cache-post-request-requests-cloudflare-workers-cache-po-2.text | A JavaScript implementation demonstrating how to use the Cache API to store and retrieve responses from POST requests within a Cloudflare Worker. | Exact payloads, commands, or snippets shown in A JavaScript implementation demonstrating how to use the Cache API to store and retrieve responses from POST requests... |
examples/workers-examples-cache-post-request-requests-cloudflare-workers-cache-po-3.text | A Python implementation using Pyodide that demonstrates how to hash a POST request body to create a unique cache key within a Cloudflare Worker. | Exact payloads, commands, or snippets shown in A Python implementation using Pyodide that demonstrates how to hash a POST request body to create a unique cache key... |
examples/workers-examples-cache-post-request-requests-cloudflare-workers-hono-cac.text | A Hono framework implementation for caching POST requests by hashing the request body into the cache key. | Exact payloads, commands, or snippets shown in A Hono framework implementation for caching POST requests by hashing the request body into the cache key. |
What This Skill Covers
- Cache POST requests using the Cache API.
- 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-post-request
