Cloudflare Docs
Cache
Visit Cache on GitHub
Set theme to dark (⇧+D)

Cache

Cloudflare makes customer websites faster by storing a copy of the website’s content on the servers of our globally distributed data centers. Content can be either static or dynamic: static content is “cacheable” or eligible for caching, and dynamic content is “uncacheable” or ineligible for caching. The cached copies of content are stored physically closer to users, optimized to be fast, and do not require recomputing.

Cloudflare caches static content based on the following factors:

  • Cache level set at a zone or page rule
  • File extension
  • Presence of query strings
  • Origin cache-control headers
  • Origin headers that indicate dynamic content
  • Page rules that bypass cache on cookie

Cloudflare only caches resources within the Cloudflare data center that serve the request. Cloudflare does not cache off-site or third-party resources, such as Facebook or Flickr, or content hosted on unproxied (grey-clouded) DNS records.

​​ Feature availability

FeatureAdditional featuresFreeProBusinessEnterprise

Always Online

YesYesYesYes

Crawl interval

Every 30 daysEvery 15 daysEvery 5 daysEvery 5 days

Browser Cache TTL

YesYesYesYes

Default Browser Cache TTL

4 hours4 hours4 hours4 hours

Minimum Browser Cache TTL

2 minutes2 minutes2 minutes30 seconds

Cache analytics

NoYesYesYes

Cache keys

NoNoNoYes

Set caching level

YesYesYesYes

Cache reserve

Paid add-onPaid add-onPaid add-onPaid add-on

Cache Rules

YesYesYesYes

Number of rules

102550125

Cache by status code

NoNoNoYes

Crawler Hints

YesYesYesYes

CSAM Scanning Tool

YesYesYesYes

Development mode

YesYesYesYes

Edge Cache TTL

YesYesYesYes

Minimum Edge Cache TTL

2 hours1 hour1 second1 second

ETag Headers

NoNoNoYes

Purge cache

YesYesYesYes

Purge options

URLURLURLURL, Hostname, Tag, or Prefix

Query string sort

NoNoNoYes

Tiered cache

YesYesYesYes

Vary for images

NoYesYesYes