one hundred and six
Cache Configuration

Operating Instructions

Cache expiration configuration refers to a set of expiration rules that CDN acceleration nodes follow when caching your business content

Log in to the console ->CDN ->Domain name management ->Configuration ->Cache configuration

Modify Configuration

The basic configuration of cache is divided into three types: default, custom, and origin

  • Default: The cache expiration time of all resource contents is 30 days by default. This is the default configuration

  • Custom: customize the cache expiration rules for the specified resource content. The default is global configuration cache for 30 days. It supports configuration according to file suffix and directory rules.
    • Suffix: must start with "." (English dot). Multiple suffixes should be separated by ";" (English semicolon), for example (. png;. jpg;. gif).
    • Path: must start with "/" (English slash). Multiple paths should be separated by ";" (English semicolon), for example: (/a/b/c;/d/e/f;/h/i/j). The path cannot contain "." or end with "/".
    • A maximum of 15 cache rules can be configured.
    • In one cache rule, at most 10 suffixes/paths are separated by ";" (semicolon).
    • Time Unit: minute/hour/day; only integer can be entered; the maximum value is 365 days.
    • 0 means no cache.
    • The priority matching principle shall be adopted from top to bottom.
    • Recommended configuration:
      • .jpg;. jpeg;. png;. bmp;. gif;. webp;. The ico image type is cached for 1 day.
      • .js;. css;. txt;. xml;. shtml;. html;. htm;. csv;. The bat text type is cached for 1 day.
      • . m3u8 m3u8 type cache for 1 hour.
      • .avi;. mkv;. mp4;. mov;. flv;. rm;. rmvb;. swf;. mp3;. wav;. wmv;. rmi;. Aac audio and video type cache for 7 days.
      • .exe;. deb;. ipa;. apk;. sis;. psd;. The dat large file type is cached for 7 days.

  • Follow the origin site: the cache expiration time of all resource contents will be synchronized with the origin site.

  • Ignore URL parameters: When caching resources, all parameters after the URL "?" are removed for caching. Ignoring all parameters will also result in the failure of FOP functions such as image processing.

Does this help solve your problem? resolved Unresolved

Submitted successfully! Thank you very much for your feedback, and we will continue to strive to do better! We are sorry that we were unable to resolve your question. We have received your feedback and will give feedback in time!