Go to the table of contents Go to the previous page Go to the next page View or print as PDF
Web Proxy Caching > Caching HTTP alternates
Caching HTTP alternates
Help | Content Gateway | Version 8.1.x
Some origin servers answer requests to the same URL with a variety of objects. The content of these objects can vary, according to whether a server delivers content for different languages, targets different browsers with different presentation styles, or provides different document formats (HTML, PDF). Different versions of the same object are termed alternates and are cached by Content Gateway based on Vary response headers.
Configuring how Content Gateway caches alternates
You can specify additional request and response headers for specific content types that the proxy will identify as alternates for caching.
1.
Navigate to Configure > Protocols > HTTP > Cacheability.
2.
In the Vary Based on Content Type section, click Enabled to cache alternate versions of HTTP documents that do not contain the Vary header.
3.
*
In the Vary by Default on Text field, enter the HTTP header field on which you want to vary if the request is for text (for example, an HTML document).
*
In the Vary by Default on Images field, enter the HTTP header field on which you want to vary if the request is for images (for example, a .gif file).
*
In the Vary by Default on Other Document Types field, enter the HTTP header field on which you want to vary if the request is for anything other than text or images.
 
Note 
If you specify Cookie as the header field on which to vary in the above fields, make sure that the appropriate option is enabled in the Caching Response to Cookies area of the Dynamic Caching section. For example, if you enable the Cache Only Image Types option in the Caching Response to Cookies area and you enable the Vary by Default on Text option in the Vary Based on Content Type section, alternates by cookie will not apply to text.
4.
Click Apply.
Limiting the number of alternates for an object
You can limit the number of alternates Content Gateway can cache per object. The default number of alternates is 3.
 
Note 
1.
Navigate to Configure > Protocols > HTTP > Cacheability.
2.
In the Maximum Alternates field, enter the maximum number of alternate versions of an object you want the proxy to cache. The default value is 3.
3.
Click Apply.

Go to the table of contents Go to the previous page Go to the next page View or print as PDF
Web Proxy Caching > Caching HTTP alternates
Copyright 2016 Forcepoint LLC. All rights reserved.