Help Center>
Content Delivery Network>
FAQs>
Cache Settings>
What Are the Default Cache Rules? Can I Modify the Cache TTL?
Updated on 2024-02-26 GMT+08:00
What Are the Default Cache Rules? Can I Modify the Cache TTL?
Each domain name is configured with one or more default cache rules.
- If the service type is website acceleration, file download acceleration, or on-demand service acceleration, and the origin server address is an origin IP address or origin domain, two default cache rules are available.
- The default cache time to live (TTL) for common dynamic files (for example, .php, .jsp, .asp, and .aspx files) is 0. CDN pulls content from the origin server directly when receiving requests for such dynamic files. You can modify and delete this rule.
- The default cache time to live (TTL) for all files is 30 days. You can modify but cannot delete this rule.
- If you have selected OBS bucket as the origin server type, there will be only one cache rule for all files by default. You can modify but cannot delete this rule.
- If the service type is whole site acceleration, there will be a cache rule for all files by default. In this rule, the cache TTL is 0. You can modify but cannot delete this rule.
If you want to change the cache TTL, choose Domains > Configure > Cache Settings on the CDN console to change it.
Parent topic: Cache Settings
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.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore