Advertising disclosure: We may earn a commission from links on this site. Commercial relationships can affect placement. Product facts, limitations, and source dates remain part of our editorial record.

How funding works
Web Hosting

Cloudflare Browser Cache TTL: A Guide for Website Owners

Learn what Browser Cache TTL means, how Cloudflare Cache Rules set it, and how to apply the documented one-day example to your own hostname.

Review sources
Research standard

Facts that can change should include a source and check date. Benchmark claims should state the plan, region, method, and test period.

Browser Cache TTL is the length of time a visitor's browser may keep a cached copy of a resource before requesting a newer copy. For Cloudflare, the documented Cache Rule example matches hostnames containing example.com, marks matching requests as Eligible for cache, overrides the origin browser TTL, and sets the browser TTL to 1 day. Replace example.com with the hostname condition you intend to use, then choose a duration that fits the resources covered by the rule.

What Browser Cache TTL controls#

TTL means time to live. Here, Browser Cache TTL describes how long a visitor's browser may retain a cached resource before checking for a newer copy. A longer TTL can mean the browser makes fewer requests for that resource during the TTL period; a shorter TTL lets changes be checked sooner. The setting should match how often the covered resources change. It does not guarantee that every visitor will retain a resource for the full period.

Browser cache and Cloudflare cache#

A browser cache is stored by the visitor's browser. Cloudflare also describes caching as storing copies of frequently accessed website content in distributed data centers. These are different locations and controls: a Cloudflare Cache Rule decides which requests Cloudflare may cache and how long they should be cached, while Browser Cache TTL concerns the copy kept by the visitor's browser. The rule workflow below is specific to Cloudflare.

Cloudflare's documented example#

Cloudflare's Browser Cache TTL example uses a Cache Rule with these settings:

Data table from this page
Rule settingDocumented example
Match conditionHostnames containing example.com
Cache eligibilityEligible for cache
Origin browser TTLOverride the origin browser TTL
Browser TTL1 day

In your own rule, change example.com to the intended hostname or match condition. Confirm that the condition covers only the resources whose browser caching you want to control. Then choose a TTL based on how frequently those resources need to reflect changes: a resource that changes often generally needs a shorter browser-retention period than one that changes infrequently. The documented one-day value is an example, not a universal setting.

For the vendor's exact fields and steps, follow Cloudflare's Browser Cache TTL example. Cloudflare's broader cache documentation provides the surrounding explanation of its caching model and Cache Rules.

Sources

  1. Cloudflare: Browser Cache TTL Checked 2026-10-26
  2. Cloudflare cache documentation Checked 2026-10-26