Forum Discussion
Jean-Christoph6
Aug 14, 2012Nimbostratus
How to configure the cache to handle the Vary Header ?
Hi There,
We have a JBOSS server that serves tons of XML documents via HTTP REST Requests.
The tricky thing is that the content of the answe...
Aug 14, 2012
Make sure that the content being served is matching to the XML node in the WebAccelerator policy. XML pages should be matching to the XML node in the library policy. The default settings on this node is for WebAccelerator to not cache the content. If the default settings have been changed the variation rules need to be used to ensure that content is cached appropriately. In your example you would need to add a variation rule for the Accept header. The default is that all headers serve the same content and in this case the Accept:notice header needs to be defined to serve different content.
From the policy select acceleration rules
Select Variation rules
From the "Add Parameter" dropdown select Header
Click Add
In the Name box enter "Accept"
Under Value Groups select "different content" from the drop down
Save
Publish
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects