Help Center/ Content Delivery Network/ FAQs/ Cache Settings/ What Are the Default Cache Rules? Can I Modify the Cache TTL?
Updated on 2024-08-15 GMT+08:00

What Are the Default Cache Rules? Can I Modify the Cache TTL?

Each domain name is configured with one or more default cache rules.

  • If the service type is website acceleration, file download acceleration, or on-demand service acceleration, and the origin server address is an origin IP address or origin domain, two default cache rules are available.
    • The default cache TTL for common dynamic files (for example, .php, .jsp, .asp, and .aspx files) is 0. CDN pulls content from the origin server directly when receiving requests for such dynamic files. You can modify and delete this rule.
    • The default cache TTL for all files is 30 days. You can modify but cannot delete this rule.
  • If you have selected OBS bucket as the origin server type, there will be only one cache rule for all files by default. You can modify but cannot delete this rule.
  • If the service type is whole site acceleration, there will be a cache rule for all files by default. In this rule, the cache TTL is 0. You can modify but cannot delete this rule.

If you want to change the cache TTL, choose Domains > Configure > Cache Settings on the CDN console to change it.