INTEGRITY Cloudflare Docs

Set Browser Cache TTL

Specify a time for a visitor’s Browser Cache TTL to accelerate the page load for repeat visitors to your website. To configure cache duration within Cloudflare’s data centers, refer to Edge Cache TTL.

By default, Cloudflare honors the cache expiration set in your Expires and Cache-Control headers. Cloudflare overrides any Cache-Control or Expires headers with values set via the Browser Cache TTL option under Caching on your dashboard if:

Unless specifically set in a Cache Rule, Cloudflare does not override or insert Cache-Control headers if you set Browser Cache TTL to Respect Existing Headers.

Nevertheless, the value you set via Cache Rule will be ignored if Cache-Control: max-age is higher. In other words, you can override to make browsers cache longer than Cloudflare's edge but not less.

Set Browser Cache TTL

  1. In the Cloudflare dashboard, go to the Caching page.

    Go to Configuration ↗
  2. Under Browser Cache TTL, select the desired cache expiration time from the drop-down menu.

The Respect Existing Headers option tells Cloudflare to honor the settings in the Cache-Control headers from your origin web server.