About Cloudflare Cache Reserve

Cloudflare Cache Reserve - Use Cloudflare’s persistent storage to increase cache times


Screenshot 2023-01-03 at 11.27.18 AM

Enable Cloudflare Cache Reserve


Cache Reserve stores data on R2 using its S3-compatible API. Under the hood, R2 handles all the complexity of an object storage system using our performant and scalable developer primitives: Workers and Durable Objects.

About Cloudflare Cache Reserve

  • On a cache miss, Pingora (our new L7 proxy) reaches out to the origin for the content and writes the response to R2. This happens while the content continues its trip back to the visitor (thereby avoiding needless latency).
  • Inside R2, a Worker writes the content to R2’s persistent data storage while also keeping track of the important metadata that Pingora sends about the object (like origin headers, freshness values, and retention information) using Durable Objects storage.
  • When the content is next requested, Pingora looks up where the data is stored in R2 by computing the cache key. The cache key’s hash determines both the object name in R2 and which bucket it was written to, as each zone’s assets are sharded across multiple buckets to distribute load.
  • Once found, Pingora attaches the relevant metadata and sends the content from R2 to the nearest upper-tier to be cached, then to the lower-tier and finally back to the visitor.

Learn more on cloudflare.com

Next Steps

Enable Cloudflare Cache Reserve
Cloudflare Cache Reserve Documentation
Ask for Advice & Share Your Insight

Read More

Blog

Please be aware that posting confidential details like origin IP or other server information may compromise the security of your website. In order for the Community to efficiently and quickly offer advice & insight, please include the name of your site (i.e., example dot com) and the error message or number you are encountering. Also, include what troubleshooting steps you have taken and the result of those actions.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.