tencent cloud

All product documents
Content Delivery Network
Status Code Cache Configuration
Last updated: 2024-12-30 21:36:38
Status Code Cache Configuration
Last updated: 2024-12-30 21:36:38

Configuration Overview

Normally, when a CDN node successfully pulls a requested resource from the origin server (with a 2XX status code returned), the node will process the resource based on the rules in the node cache validity configuration. If the origin server is unable to process the non-2XX requests quickly, and you do not want all requests to be passed through to the origin server, you can configure the status code cache validity period. In this case, the CDN node will directly respond to non-2XX requests, helping reduce pressure on the origin server. Currently supported status codes are as follows:
4XX: 400, 401, 403, 404, 405, 407, 414
5XX: 500, 501, 502, 503, 504, 509, 514
Note:
For now, some platforms only supports 404 and 403 codes. We will complete server upgrade as soon as possible.
Currently, only the status codes 404 and 403 are supported in regions outside the Chinese mainland. If the acceleration region of a domain name is "Global", then the status code cache rules except for 404 and 403 will only take effect in the Chinese mainland.

Configuration Guide

Viewing configuration

Log in to the CDN console, select Domain Management on the left sidebar, click Manage on the right of a domain name to enter its configuration page, and switch to the Cache Configuration tab to find the Status Code Cache section. There is a default rule, which will cache 404 requests for 10 seconds.



Adding rules

You can click Add Rule to add status code cache rules as needed.


Configuration limitations
Each status code can only have one unique rule.
The cache time 0 means not to cache content.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon