Advertising disclosure: We may earn a commission from links on this site. Commercial relationships can affect placement. Product facts, limitations, and source dates remain part of our editorial record.

How funding works
Web Hosting

Cloudflare Cache Level (Cache Everything): A Guide for Website Owners

Learn how Cloudflare Cache Level (Cache Everything) caches matching HTML, why dynamic pages need exclusions, and when to purge.

Review sources
Research standard

Facts that can change should include a source and check date. Benchmark claims should state the plan, region, method, and test period.

Cloudflare Cache Level (Cache Everything) makes matching HTML eligible for caching, so Cloudflare can serve stored copies from its distributed data centers. Use it only for pages whose responses are the same for every visitor. If a cached page contains visitor-specific information, one visitor could receive another visitor’s content.

What Cache Everything does#

Cloudflare’s Cache Rules let website owners choose what should be cached and for how long. The Cache Everything example extends cache eligibility to HTML, including pages that might otherwise be treated as dynamic.

That makes the setting useful for public, identical pages, such as a static information page. It is unsafe for pages that include account details, shopping-cart contents, personalized messages, or other visitor-specific data unless those responses are excluded from the rule.

The documented hostname rule#

Cloudflare’s example creates a Cache Rule that matches a hostname and sets Cache eligibility to Eligible for cache. Its hostname expression is:

http.host contains "example.com"

In practice, replace the example hostname with the hostname covered by your rule, then verify that the rule applies only to the content you intend to cache. The exact behavior and configuration described here are specific to Cloudflare.

Exclude dynamic content#

Before enabling the rule, identify URLs that can return different content for different visitors. Cloudflare recommends narrowing the rule or adding exclusions based on conditions such as:

  • Cookies that identify a signed-in user or store session information
  • Known dynamic paths, such as account or checkout areas
  • File extensions associated with dynamic responses

Keep those requests out of the Cache Everything rule. If only part of a site is public and identical, apply the rule to that part rather than to the entire hostname.

Purge after content changes#

Cloudflare documents purging cached files so the service fetches fresh versions from the web server. Consider purging affected cached content after publishing a change that must appear immediately, especially when an old HTML response could remain visible to visitors.

Caching does not replace testing. Check public pages with the rule enabled, then check pages that use cookies, sessions, or other personalized data to confirm they are excluded. If a response should never be shared between visitors, do not make it eligible for Cache Everything.

Sources

  1. Cloudflare: Cache Level (Cache Everything) Checked 2026-11-16
  2. Cloudflare cache documentation Checked 2026-11-16