Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-examples-cache-post-request-requests-workflow-guide.mdA 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.textA 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.textA 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.textA 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.textA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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