Updated on 2023-12-28 GMT+08:00

Overview

CDN caches origin content on PoPs across the globe so that users can obtain content from nearby PoPs. You can modify cache settings to change the cache status of resources on CDN PoPs.

The following table describes the cache settings.

Function

Description

Cache Rules

  • You can set the cache TTL and priority for different resources to increase the hit ratio and reduce the back-to-source rate.
  • You can filter URL parameters to allow CDN PoPs to ignore the parameters following a question mark (?) when caching resources, improving the cache hit ratio and speeding up distribution.
  • You can set the cache TTL on CDN PoPs to be the same as that on your origin server.

Status Code Cache TTL

You can cache error codes returned by the origin server to CDN PoPs in a specific duration, so that CDN returns the error codes to users when they request content. This can reduce origin pulls and relieve the pressure on the origin server.

  • If you have modified the cache rules and origin cache control settings, pay attention to the following:
    • The new rule does not apply to content that has been cached but only applies to new content.
    • After modifying the cache rules, purge the cache for the modification to take effect.