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

Get started with Cache

​​ 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.

​​ Cloudflare features that can alter your HTML and cacheable objects

To provide Cloudflare services to our customers, we may need to alter your HTML or cached objects to enable the feature or provide optimization.

These code alterations only occur on the cacheable objects found at Cloudflare’s edge and do not affect the original source. The changes will also be removed if the specific feature is disabled and the cache is purged.

Review the list of Cloudflare features that function in this manner.

​​ Troubleshoot

Resolve common caching concerns.