You can increase the efficiency of the client's web browser's local cache and improve perceived access to your site by enabling the Intelligent Browser Referencing (IBR) feature, which reduces or eliminates requests to your site for relatively static content, such as images and cascading style sheet (CSS) files.
When an origin web server sends a response, the client's browser stores the response in its local cache. If the cached object expires, the browser makes subsequent requests for that content using a conditional GET request in the form of an extra request header field, such as If-Modified-Since. If the requested object is different from the content that the browser has cached, the origin web server sends a fresh copy of the object to the browser. Otherwise, the browser uses the object that is cached locally.
Although it is faster than serving the entire object each time the browser requests it, conditional GET requests can add up to a significant amount of traffic for your site. For example, if your site has several images for each page, clients might perceive a slow response time because of the large number of conditional GET requests for the image objects.
You can use the Enable Intelligent Browser Referencing To setting to manage the web browser's cache in two ways.
The Enable Intelligent Browser Referencing Within setting uses an IBR tag (such as wa) to append a unique value to qualifying links and URLs within web pages that match the node.
For an HTML page, the BIG-IP device applies IBR to the following elements and statements.
You can use the Enable Intelligent Browser Referencing To setting to prompt the BIG-IP device to rewrite links to cascading style sheet (CSS) files on a node.
When enabled, the Enable Intelligent Browser Referencing Within setting manages responses for URLs to images and for URLs to CSS files that are externally linked or imported by a CSS file in two ways.
Within externally linked CSS files, the BIG-IP device applies IBR to the following elements and statements.
When you enable Intelligent Browser Referencing for a policy node, an application can apply IBR Adaptive Lifetime (typically shorter than a standard IBR lifetime) to the CSS file. This enables the assembly of linked image files before all of the image files are cached, and allows the embedded image files to refresh before a client uses stale image files from a browser's cache. You should consider the shortest lifetime needed for an image file when configuring adaptive IBR lifetime settings. You can adjust the IBR Adaptive Lifetime setting for an application on the Applications screen.
For this Intelligent Browser Referencing (IBR) example, you have three top-level nodes on the Policy Tree as follows:
For this example, your site serves a simple page that consists of two image files that appear like this:<html> <head><title>example page</title></head> <body> <p>The images that your site serves:</p> <p><img src="myImages/image1.jpeg"></p> <p><img src="myImages/image2.jpeg"></p> </body> </html>
When the IBR tag (in this example, wa) is enabled, the BIG-IP device modifies the page like this:<html> <head><title>example page</title></head> <body> <p>The images that your site serves:</p> <p><img src="myImages/image1.jpeg;waRG2076ND"></p> <p><img src="myImages/image2.jpeg;wa7YW905BV"></p> </body> </html>
The IBR tag that the BIG-IP device appends to each image source URL is a hash of the image that is stored in cache. In addition, the browser receives a long expiration time for each of the image files.
As a result, the client browser conducts subsequent requests for the page with multiple actions:
If an image on the page is modified, the BIG-IP device changes the IBR tag for the image and informs the client of the change. When the client performs a subsequent conditional GET request for the base page and receives the refreshed page, it compares the image, and notes the difference between image1.jpeg;wa4RR87M90 and image1.jpeg;waRG2076ND. This difference prompts the client to re-request the image from the BIG-IP device.
For the General Options list, this table describes the Advanced settings and strings for the IBR Options area.
|IBR Prefix||;wa||Specifies a string that the BIG-IP device appends to
a unique value for qualifying links or URLs embedded in your web pages.
Note: If you change the IBR prefix, test thoroughly to ensure that your application functions properly.
|IBR Default Lifetime||26 Weeks||Specifies the lifetime for an Intelligent Browser Referencing (IBR) link or URL. Units of time range from Seconds through Months.|
|IBR Adaptive Lifetime||10 Days||Specifies the lifetime for an adaptive IBR link or URL within an
externally linked CSS file. Units of time range from
Seconds through Months.
Note: Verify that the Enable Intelligent Browser Referencing Within check box is selected before you apply an adaptive IBR lifetime.