Forum Discussion
Jay_Sawyer_1110
Nimbostratus
Mar 16, 2007Vary Header element replacement or removal
Hello all...
I have a virtual server with an HTTP profile with compression enabled with selective. I am using the following iRule:
when HTTP_RESPONSE {
foreach header {Vary} {
while { [HTTP::header exists $header] } {
HTTP::header remove $header
}
}
}
When attempting to remove the vary header in the response to either replace elements or remove the vary altogether, it seems to always show up in the response. Am I presuming that the LTM does not allow the Vary header to be removed/touched by an iRule considering there's a global option to disable it int he profile.
Disabling the vary header globally is not optimal to stay compliant with RFC2616, but I would like to be able to remove or replace this header for specific responses. Is there a better way of doing this short of disabling Vary within the profile?
This request stems from the MS IE6 issue when seeing the Vary header when attempting to open an Excel file. I am currently working with F5 Technical Support and have not been provided a solution/workaround as of yet.
Thank you for your time gents,
Jay Sawyer
- bl0ndie_127134Historic F5 AccountJay, do you have compression or ramcache enabled? Then that's probably why its being re-added.
- Jay_Sawyer_1110
Nimbostratus
Thanks for reply... - bl0ndie_127134Historic F5 AccountIf you don't have ramcache then there is another work around you coud try. There is a profile option in the http profile that allows you to disable adding the vary header. You could disable that and manually hand roll the header insertion in the rule.
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