What does browser cache expire TTL mean?

When creating a Page Rule, the Browser Cache Expire TTL parameter is the time that Cloudflare instructs a visitor's browser to cache a resource by setting the Cache-Control header's max-age. Until this time expires, the browser will load the resource from its local cache thus speeding up the request significantly. 

Cloudflare 
will add a Cache-Control header to the resources matched by the Page Rule if there is no Cache-Control header added to the resource by the origin server or Cloudflare will replace the Cache-Control header added by the origin server only if the Browser Cache TTL is longer than the TTL in the Cache-Control header set by the origin.
 
It is possible to instruct Cloudflare not to replace Cache-Control using a feature called "Respect Existing Headers", in order to utilise this - firstly navigate to the caching tab in the Cloudflare dashboard.
 
 
Once here, scroll down to an option labelled "Browser Cache Expiration", simply select the "Respect Existing Headers" option here. After this is set, Cloudflare will not override Cache-Control headers (even if they don't exist at all).
 
All users are able to change this setting site-wide using the Browser Cache Expiration option in the Caching tab, however Enterprise customers are able to set "Respect Existing Headers" via a Page Rule in the Browser Cache TTL setting
Still not finding what you need?

The CloudFlare team is here to help. 95% of questions can be answered using the search tool, but if you can’t find what you need, submit a support request.

Powered by Zendesk