Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Cache

Provides instructions for managing and configuring the Cache API within the Miniflare testing environment, including using default and named caches, enabling file system persistence, manipulating cache data from outsi...

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Cache

Provides instructions for managing and configuring the Cache API within the Miniflare testing environment, including using default and named caches, enabling file system persistence, manipulating cache data from outsi...

When To Use

Use when you need to configure cache persistence, manage named caches, or programmatically clear and manipulate cached data during Miniflare testing sessions.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-testing-miniflare-cache-workflow-guide.mdA technical reference guide detailing how the Cache API works within Miniflare, including default cache access, named caches, and persistence.Questions about a technical reference guide detailing how the Cache API works within Miniflare, including default cache access, named...
examples/workers-testing-miniflare-cache-cloudflare-workers-miniflare-cache-fetch.textA JavaScript code snippet demonstrating how to use the Workers Cache API with Miniflare to match requests.Exact payloads, commands, or snippets shown in A JavaScript code snippet demonstrating how to use the Workers Cache API with Miniflare to match requests.
examples/workers-testing-miniflare-cache-cloudflare-workers-miniflare-cache-api-u.textA text-based demonstration of using the Cache API within a Miniflare environment for testing Cloudflare Workers.Exact payloads, commands, or snippets shown in A text-based demonstration of using the Cache API within a Miniflare environment for testing Cloudflare Workers.
examples/workers-testing-miniflare-cache-cloudflare-workers-miniflare-cache-persi.textA configuration example demonstrating how to set the cachePersist path in Miniflare for testing Cloudflare Workers Cache.Exact payloads, commands, or snippets shown in A configuration example demonstrating how to set the cachePersist path in Miniflare for testing Cloudflare Workers Ca...
examples/workers-testing-miniflare-cache-cloudflare-workers-miniflare-cache-api.textA JavaScript code example demonstrating how to use the Miniflare environment to test the Workers Cache API using put and match operations.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the Miniflare environment to test the Workers Cache API using put...
examples/workers-testing-miniflare-cache-miniflare-workers-cache-purge.textA JavaScript code snippet demonstrating how to use Miniflare to purge the default and named caches in a Workers environment.Exact payloads, commands, or snippets shown in A JavaScript code snippet demonstrating how to use Miniflare to purge the default and named caches in a Workers envir...
examples/workers-testing-miniflare-cache-cloudflare-workers-miniflare-cache-confi.textA code snippet demonstrating how to initialize Miniflare with the cache option enabled or disabled for testing Workers Cache functionality.Exact payloads, commands, or snippets shown in A code snippet demonstrating how to initialize Miniflare with the cache option enabled or disabled for testing Worker...

What This Skill Covers

  • Cache Reference How the Cache works(note that cache using fetch is unsupported)
  • Main sections: Default Cache, Named Caches, Persistence, Manipulating Outside Workers, Purging.

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/testing/miniflare/storage/cache/index.md