Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Examples Cache Tags using Workers

Demonstrates how to implement custom cache tags within a Cloudflare Worker to enable granular cache invalidation.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Examples Cache Tags using Workers

Demonstrates how to implement custom cache tags within a Cloudflare Worker to enable granular cache invalidation.

When To Use

Use when you need to implement a mechanism for purging specific groups of cached content via custom tags in a Cloudflare Workers environment.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-examples-cache-tags-using-workflow-guide.mdA markdown document providing implementation examples for using cache tags within Cloudflare Workers.Questions about a markdown document providing implementation examples for using cache tags within Cloudflare Workers.
examples/workers-examples-cache-tags-using-cloudflare-workers-cache-tags.textA JavaScript worker script demonstrating how to implement and utilize cache tags within the Cloudflare Workers environment.Exact payloads, commands, or snippets shown in A JavaScript worker script demonstrating how to implement and utilize cache tags within the Cloudflare Workers enviro...
examples/workers-examples-cache-tags-using-cloudflare-workers-cache-tags-2.textA JavaScript worker script demonstrating how to implement and utilize cache tags within the Cloudflare Workers environment.Exact payloads, commands, or snippets shown in A JavaScript worker script demonstrating how to implement and utilize cache tags within the Cloudflare Workers enviro...
examples/workers-examples-cache-tags-using-cloudflare-workers-hono-cache-tags.textA Hono application implementation for Cloudflare Workers that demonstrates how to apply cache tags to outgoing fetch requests.Exact payloads, commands, or snippets shown in A Hono application implementation for Cloudflare Workers that demonstrates how to apply cache tags to outgoing fetch...
examples/workers-examples-cache-tags-using-cloudflare-workers-cache-tags-python.textA Python implementation of a Cloudflare Worker that demonstrates how to use cache tags to manage cache invalidation.Exact payloads, commands, or snippets shown in A Python implementation of a Cloudflare Worker that demonstrates how to use cache tags to manage cache invalidation.

What This Skill Covers

  • If you want to get started quickly, click on the button below.
  • 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-tags