Skip to content

Get started

Cloudflare speeds up your website by caching content across globally distributed data centers.

Content can be static or dynamic. Static content — such as images, CSS, and JavaScript files — is cacheable by default. Dynamic content, such as HTML pages, is not cached by default, but you can use Cache Rules to cache it.

Cloudflare caches static content based on the following factors:

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

Learn the basics

Discover the benefits of caching with Cloudflare's CDN and understand the default cache behavior.

Make more resources cacheable

Configure your settings to cache static HTML or cache anonymous page views of dynamic content.

Improve cache HIT rates

Include or exclude query strings, optimize cache keys, or enable Tiered Cache to improve HIT rates and reduce traffic to your origin.

Secure your cache configuration

Control resources a client is allowed to load and set access permissions to allow different origins to access your origin's resources. Protect your site from web cache deception attacks while still caching static assets.

Features that alter cached content

Some Cloudflare features modify your HTML or cached objects at the edge to enable optimizations or security protections. These alterations only affect cached copies at Cloudflare's edge and do not change your original source files. Cloudflare removes the changes when you disable the feature and purge the cache. These alterations only affect cached copies at Cloudflare's edge and do not change your original source files. The changes are removed if the feature is disabled and the cache is purged.

Troubleshoot

Resolve common caching concerns.