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 Huawei Cloud CDN Support Regular Expressions for Cache Policy Setting?
- Does CDN Support Batch Configuration of Cache Policies for Acceleration Domain Names?
- Does CDN Cache Status Codes 404 and 403?
- What Are the Default Cache Rules? Can I Modify the Cache TTL?
- Why Is the Cache Hit Ratio of a Domain Name with Whole Site Acceleration Greater Than 0?
- 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?
- Why Am I Able to Access and Download a File After It Is Deleted from an OBS Bucket?
- 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 Cache TTL 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?
- Can I Specify a Directory and Filename Extension for Caching?
- When Hotlinking Happens, Will the Previous Cache Still Exist After I Change the Domain Name?
- All Resources Are Preheated, and the Cache TTL Is One Year. Why Is the Requested Content Still Being Pulled from the Origin Server?
- 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.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore