Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

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

  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-api