Applies To:
Show VersionsBIG-IP AAM
- 11.5.10, 11.5.9, 11.5.8, 11.5.7, 11.5.6, 11.5.5, 11.5.4, 11.5.3, 11.5.2, 11.5.1
Overview: Lifetime rules
The length of time that a client browser, upstream device, or BIG-IP system keeps compiled content in its cache before refreshing it is called content lifetime. Content lifetime is expressed in the form of a time to live (TTL) value, and can vary for each cached response.
When content is in cache longer than its TTL value, the BIG-IP system considers the content expired. When the BIG-IP system receives a request for expired content, it sends that request to the origin web servers for fresh content, replaces the expired cached content with the fresh response, and then responds to the request.
Configuring lifetime cache settings
An example lifetime rule
- Home. This branch node specifies the rules related to the home page.
-
Applications. This branch node specifies the rules
related to the applications for the site, with the following leaf nodes:
- Default. This leaf node specifies the rules related to non-search related applications.
- Search. This leaf node specifies the rules related to your site's search application.
- Images. This branch node specifies the rules related to graphics images.
Example of lifetime rule for the Home node
You change your site's content approximately every 4 hours. You want the BIG-IP system to cache content for no longer than 24 hours. If the origin web servers are not responding for request for fresh content, you are willing to allow the BIG-IP system to serve content that is 8 hours old (or twice the age of the content).
To ensure that you can manage content invalidation, you do not want to rely solely on the browser's local cache settings for the home node, so you do not have a minimum time set for content residing in the browser cache before performing a check for content freshness.
- On the Lifetime tab for the Home node, select the Honor Headers From Origin Web Server check box.
- For the Origin Web Server Headers setting, select expires in the Available field, and move the header to the Selected field using the Move button.
- Specify a Maximum Age of 24 Hours and a Stand-in Period of 8 Hours.
- Leave all other options at the default settings.
An example lifetime rule for the Default leaf node
The content served for your general applications changes about once every 4 hours. You use an invalidations rule to force a refresh when content changes, but you do not want content to remain in the system's cache for more than 5 hours without a refresh.
If the origin web servers are not responding to the BIG-IP system's refresh requests, you are willing to allow the BIG-IP system to serve content that is 8 hours old (or twice the age of the content).
- Create a lifetime rule for the Default leaf node.
- Select the Honor Headers From Origin Web Server check box.
- For the Origin Web Server Headers setting, select expires in the Available field, and move the header to the Selected field using the Move button.
- Specify a Maximum Age of 5 Hours and a Stand-in Period of 8 Hours.
- Leave all other options at the default settings.
An example lifetime rule for the Search leaf node
- On the Lifetime tab for the Search leaf node, select the Honor Headers From Origin Web Server check box.
- For the Origin Web Server Headers setting, select expires in the Available field, and move the header to the Selected field using the Move button.
- Specify a Maximum Age of 8 Hours and a Stand-in Period of 10 Hours.
- Leave all other options at the default settings.
An example lifetime rule for the Images node
- On the Lifetime tab for the Images node, select the Honor Headers From Origin Web Server check box.
- For the Origin Web Server Headers setting, select expires in the Available field, and move the header to the Selected field using the Move button.
- Specify a Maximum Age of 24 Hours and a Stand-in Period of 8 Hours.
- In the Client Cache Settings area, select the Custom Cache-Control Directives option, and specify a Maximum Age of 4 Days.
- Leave all other options at the default settings.