Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/content/docs/workers/reference/how-the-cache-works.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ Conceptually, there are two ways to interact with Cloudflare’s Cache using a W

* Caching responses generated by the Worker itself through `cache.put()`.

:::caution[Tiered caching]
:::caution[Tiered caching & Cache Reserve]


The Cache API is not compatible with tiered caching. To take advantage of tiered caching, use the [fetch API](/workers/runtime-apis/fetch/).
The Cache API is not compatible with tiered caching and Cache Reserve. To take advantage of tiered caching, use the [fetch API](/workers/runtime-apis/fetch/).


:::
Expand Down Expand Up @@ -118,7 +118,7 @@ This [template](/workers/examples/cache-api/) shows ways to use the cache API. F

:::caution[Tiered caching and the Cache API]

Cache API within Workers does not support tiered caching. Tiered Cache concentrates connections to origin servers so they come from a small number of data centers rather than the full set of network locations. Cache API is local to a data center, this means that `cache.match` does a lookup, `cache.put` stores a response, and `cache.delete` removes a stored response only in the cache of the data center that the Worker handling the request is in. Because these methods apply only to local cache, they will not work with tiered cache.
Cache API within Workers does not support tiered caching or use with Cache Reserve. Tiered Cache concentrates connections to origin servers so they come from a small number of data centers rather than the full set of network locations. Cache API is local to a data center, this means that `cache.match` does a lookup, `cache.put` stores a response, and `cache.delete` removes a stored response only in the cache of the data center that the Worker handling the request is in. Because these methods apply only to local cache, they will not work with tiered cache.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should tell people to use KV

:::

## Related resources
Expand Down