Browser cache TTL

更新时间:
复制 MD 格式

Browser cache TTL controls how long browsers keep resources in their local cache. By default, ESA honors the origin's Cache-Control header. You can set a custom cache duration without changing your origin configuration.

Important

The global Browser cache TTL applies to all requests, not just the file types listed under default cached file extensions in the Default Caching Rule.

Procedure

  1. In the ESA console, choose Websites, and in the Website column, click the target website.

  2. In the left-side navigation pane, choose Caching > Settings.

  3. In the Browser Cache TTL section, click Configure, select a caching policy, and click OK.

    • Honor Origin TTL: Browsers use the caching policy from the origin. If the origin specifies no caching policy, the ESA point of presence (POP) does not add or modify caching headers.

    • Do Not Cache: Browsers do not cache any resources from ESA, even if the origin provides a caching policy.

    • Use Custom TTL: Browsers use the TTL set in ESA, regardless of the origin's cache policy. Set the TTL in the ESA section. The minimum value is 1 second. Multiple time units are available.

Global vs. rule-based configuration

A global configuration applies to all requests for a website. To target specific requests, use a rule-based configuration instead. Rules define conditions based on request parameters for precise control. The rule-based equivalent is Browser Cache TTL.