Get started (2)

Last updated Oct 12, 2026 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.

Was this helpful?

YesNo

On this page

Get started (2) - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/cache/get-started/#page","headline":"Get started","description":"Set up and configure Cloudflare caching for your website.","url":"https://developers.cloudflare.com/cache/get-started/","inLanguage":"en","image":"https://developers.cloudflare.com/cache/get-started/og.png?v=e825d083ecdd67e4","dateModified":"2026-10-12","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"},"keywords":["CORS"]}


description: How Cloudflare handles HEAD requests and Set-Cookie headers. title: Head Requests and Set-Cookie Headers image: https://developers.cloudflare.com/cache/concepts/cache-behavior/og.png?v=befea3eecc228c98


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/cache/llms.txt
Use this file to discover all available pages before exploring further.