Why Does a Cache Rule Not Take Effect?
Possible causes and solutions:
- You have just completed configuring the cache rule and it takes about 5 minutes for the rule to take effect. Verify cache configuration after the rule takes effect.
- You have modified the cache rule. The new rule does not apply to content that has been cached but only applies to new content. If you want the new rule to take effect on the cached content, purge the cache on points of presence (PoPs).
- Cache rules have priorities. The cache rule with a higher priority (large value) is matched first. Check the priority of your cache rules.
Example: You have configured a File type cache rule for domain name www.example.com to cache JPG files for only one day. The priority of the cache rule is set to 2.
Result: When a user accesses the www.example.com/test/cdn.jpg file, two cache rules, Full path and File type, can be applied to this file. The priority of the Full path rule is 8, which is higher than that of the File type rule. Therefore, the system follows the Full path rule /test/*.jpg and caches the file for three days.
Method: To make the File type rule to take effect, set its priority to a value greater than 8.
Cache Settings FAQs
- Will the Cache on CDN PoPs Be Updated in Real Time?
- Does CDN Cache Status Codes 404 and 403?
- What Are the Default Cache Rules? Can I Modify the Cache Age?
- Does the Path in Cache Settings Refer to a Web Address or File Path on the Server?
- Why Is the CDN Cache Hit Ratio Low?
- How Do I Cache the Homepage (Root Directory)?
- How Do I Check Whether a Cache Is Hit?
- Why Is the Latest Content Inaccessible Even When the Maximum Cache Age Is Set to 0?
- Does Huawei Cloud CDN Support Caching octet-stream Stream Files?
- Why Are Certain Files Not Downloadable Even Though They Have Not Expired (365 Days)?
- How Do I Configure Cache for Resources That Do Not Need to Be Cached?
- How Do I Synchronize Content Cached on CDN PoPs with That on the Origin Server?
- Why Does a Cache Rule Not Take Effect?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
more