KV has really good docs on how it works: <https://developers.cloudflare.com/workers/learning/how-kv-

KV has really good docs on how it works:
https://developers.cloudflare.com/workers/learning/how-kv-works/
The Cache API doesn't have any docs like that but it is a lot simpler, just a per-colo (keeping in mind some Cloudflare PoPs have more than one colo) cache. It doesn't replicate, tiered caching/reserve cache settings don't apply to it, and it's response-based. Main upside is that the Cache API is completely free, but there's no guarantees on how long it will stick around (TTL is a "at most" not a guarantee)
KV is an actual data store, cached at every edge from two central stores (the link above explains all of that fully), and it is eventually consistent. KV has it's own internal cache once it is requested. Cloudflare Pages uses it for all of the static assets, it scales well.
Was this page helpful?