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...
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-testing-miniflare-cache-workflow-guide.md | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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
- 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/testing/miniflare/storage/cache/index.md
