All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term


Configure cache policies

Last updated:2020-11-26 19:49:52

Click Configure in the left navigation pane, find the domain name that you want to configure, and then click Manage in the Operate column. On the page that appears, click Cache Configuration in the left navigation pane to configure cache policies and customize error pages.


Configure cache policies

You can configure a cache policy to set the rule for caching specified files.


Click Add Cache Configuration. In the dialog box that appears, set the parameters and click Ok. After the settings are completed, you can adjust the priorities of different cache policies. Click Save The Configuration to validate the settings.




  • If no cache policy is configured in the Kingsoft Cloud CDN console, files are cached for 30 days by default.
  • If the cache time is set to 0s, Kingsoft Cloud CDN still caches content. When Kingsoft Cloud CDN receives an access request, Kingsoft Cloud CDN initiates If-Modified-Since back-to-origin verification and determines whether the origin content changes based on the Last-Modified parameter in the response of the origin server. A. If the origin content changes, Kingsoft Cloud CDN obtains requested content from the origin server and returns the content to the user. B. If the origin content does not change, the origin server returns a 304 error. Kingsoft Cloud CDN returns cached content to the user. If your origin server does not support If-Modified-Since back-to-origin verification, Kingsoft Cloud CDN may return cached content to the user.

  • After the cache policies are changed for a domain name, we recommend that you refresh cached content for the domain name. This ensures that the resources of the domain name can be cached based on the latest cache configuration.

Customize error pages

You can customize error pages for common error codes.


  • You can configure error pages for the following error codes: 400, 403, 404, 405, 406, 414, 416, 500, 501, 502, 503, and 504.


Click Add Error Page Configuration. In the dialog box that appears, define the error page and click Ok. Then, click Save The Configuration to validate the settings.

On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen