Create and manage caching rules in Rackspace CDN
Caching rules are designed to determine how long your content should live on the edge nodes before the origin is checked for an update. If your content changes frequently, you might want to set up a time to live (TTL) rule that pulls content from the origin every few minutes. If your content does not change frequently, we suggest you set a longer TTL of 12-24 hours.
When you create multiple rules, you must order rules from least specific to most specific.
For more information about rules, see the following sections and Rackspace CDN edge rules.
After you create your service, you enter caching rules in the Caching Rules section of the CDN service page.
Create a caching rule
After you have created your service, follow these steps to create a caching rule:
Click Add Rule.
A popup dialog box appears.
Enter the following information to define the rule:
- Name: Name for the rule.
- TTL: The TTL to wait before the origin is checked for updates. Enter a value, and then select seconds, minutes, hours, or days as the unit for the TTL.
- Path: Path for the rule.
Click Save Rule.
The Service Status is Pending until the new rule is deployed. After the rule is deployed, it is displayed in the Caching Rules list.
Edit a caching rule
To edit a caching rule, follow these steps:
Click the gear icon beside the rule that you want to edit, and select Edit Rule.
Edit the name, the TTL, or the path for the rule.
Click Save Rule.
The Service Status is Pending until the updated rule is deployed. After the rule is deployed, it is displayed in the Caching Rules list.
Delete a caching rule
To delete a caching rule, follow these steps:
Click the gear icon beside the rule that you want to delete, and select Delete Rule.
In the popup dialog box, click Delete Rule.
The Service Status is Pending until the caching rule is deleted. After the rule is deleted, it is removed from the Caching Rules list.
©2020 Rackspace US, Inc.
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License