Feature Overview
Cache TTL is the amount of time that an origin server resource is cached on the edge node. After TTL ends, the edge node will mark the corresponding resource as expired. If the resources requested by the client have expired, the edge node obtains the latest resources from the origin server and caches them for other requests.
You can configure cache for AccessOne EdgeTrans by filename extension, directory, homepage, all files, and full path. You can create a cache TTL for static resources based on file directories or file name extensions.
Before You Begin
You have added a service domain name. If you have not added it, see Adding a Service Domain Name.
Cautions
• By default, query strings are ignored when caching. If query strings need to be carried when caching, disable this feature.
• You can set the weight to customize the priority of each rule. A larger weight indicates a higher priority.
Procedure
1. Log in to the console, select Acceleration Management > CDN Acceleration Configuration, and select the domain name to be configured in the domain name list.
2. Click Edit Configuration.
3. Click Add Rule and select filename extension, directory, homepage, all files, or full path and configure corresponding items.
4. Select a unit for Expire In, such as seconds, minutes, hours, or days, and fill in the corresponding expiration time.
5. Select Cache Rule. The default value is Force Cache.
6. By default, the Ignore Query Strings When Caching feature is enabled. If query strings need to be carried when caching, disable the feature.
7. Select Weight. You can set the weight to customize the priority. A larger weight indicates a higher priority.