Cloudflare cache default ttl. This value overrides any Cache-Control headers received from the origin server, enabling finer control over cache duration at the edge. Our agile SASE platform accelerates safe AI adoption, and our developer platform is the best place to build and run AI apps. Dec 29, 2023 · Follow our expert walkthrough on how to set Cloudflare browser cache TTL and ensure your website always runs at lightning speed. Dec 1, 2025 · Is your Cloudflare cache hit rate low because HTML isn't cached by default? Learn how to configure Cache Rules and Edge TTL to boost from 30% to 90%, dramatically reducing server load. Aug 13, 2024 · Browser TTL controls how long an image stays in a browser's cache and specifically configures the cache-control response header. Complete guide with step-by-step instructions, security considerations, and verification methods. Aug 18, 2016 · If the Cache-Control header is set to “private”, “no-store”, “no-cache”, or “max-age=0”, or if there is a cookie in the response, then CloudFlare will not cache the resource, unless a Page Rule is set to cache everything and an Edge Cache TTL is set. Aug 13, 2024 · By default, Cloudflare honors the cache expiration set in your Expires and Cache-Control headers but overrides those headers if: The value of the Expires or Cache-Control header from the origin web server is less than the Browser Cache TTL Cloudflare setting. The origin web server does not send a Cache-Control or an Expires header. Oct 13, 2025 · Cache TTL by status code Cache TTL by status code Note If you are migrating from Page Rules and you want to keep Page Rules behavior, you need to create two specific rules before creating this rule. Oct 13, 2025 · Edge Cache TTL Create a cache rule to adjust edge cache TTL for caching resources on Cloudflare edge to one day, for any hostname containing example. 1 day ago · Configure Cloudflare as a CDN and security layer for your VPS-hosted websites. com:. Jun 9, 2024 · From the Cloudflare main menu, select “Caching” and then “Cache Rules” and you will see the form below where we simply select some rules to match - in this case that the URI Path ends with ‘js’ or ‘css’ - and then the caching behaviour we want to apply. For more information on how to set up Edge Cache TTL, refer to Cache rules. Oct 13, 2025 · Browser Cache TTL If you are migrating from Page Rules and you want to keep Page Rules behavior, you need to create two specific rules before creating this rule. For more details refer to Migration from Page Rules. Feb 26, 2026 · By default, Cloudflare caches certain HTTP response codes with the following Edge Cache TTL when a cache-control directive or expires response header are not present. When you create a Cache Everything Page Rule, you now may choose whether to respect all existing headers or to override any headers that are in place from your server. Jul 9, 2022 · In conclusion, the Browser Cache TTL controls the expiration of resources cached in a visitor’s browser. Edge Cache TTL is not visible in response headers and the minimum Edge Cache TTL depends on plan type. Connect, protect, and build everywhere We make websites, apps, AI agents, and networks faster and more secure. Aug 30, 2025 · The solution was to set a page rule with a * wildcard for the upper-level directory containing the XML files, with Cache Level: Cache Everything and a browser TTL duration that seemed appropriate. Covers DNS setup, SSL modes, caching rules, page rules, WAF, and performance optimization. If the Cache-Control header is set to “private”, “no-store”, “no-cache”, or “max-age=0”, or if there is a cookie in the response, then CloudFlare will not cache the resource, unless a Page Rule is set to cache everything and an Edge Cache TTL is set. Feb 1, 2013 · Edge cache expire TTL is the setting that controls how long CloudFlare's edge servers will cache a resource before requesting a fresh copy from your server. Our Support team defined what it is and demonstrated how to set it in Cloudflare. Aug 13, 2024 · Edge Cache TTL (Time to Live) specifies the maximum time to cache a resource in the Cloudflare global network. Cloudflare allows you to set a Time To Live (TTL) value for cached content directly within the Cloudflare dashboard. Configure Cloudflare as a CDN and security layer for your VPS-hosted websites. el6m zmk 0fvz lh5e rksh jzy hixz zhx qpd kvll ru6r zk9x yaq f3e bko zwls zww zzss iht 2of 0ku psj uku lxg it88 fju 98hj fzsn 3sp jho