Add a Cache Rule
Time-to-live (TTL) refers to the amount of time that an object is cached on Zenlayer CDN points of presence (POPs). When the TTL expires, requests that attempt to access the expired content are redirected to origin. You can add a cache rule for static contents based on file directories or file extensions.
Procedures
Click one domain name in the domain list.
Go to Cache Config > Add Policy to add cache expiration policies.
Enable/disable Ignored Cache (Cache Without Parameter).
Parameter | Description |
---|---|
Type | Select Directory, File Suffix or Full Website.
|
Expire Time | Specify the TTL. The maximum TTL is one years. Refer to the following rules:
|
Value range | Specify a weight for the cache rule. The weight indicates the priority of the cache rule. Valid values: 1 to 999. A larger value specifies a higher priority. |
Last updated