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.
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.
Notes:
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.
You can customize error pages for common error codes.
Note:
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.
Did you find the above information helpful?
Please give us your feedback.
Thank you for your feedback.