Emulate IE7 header insertion in response for IE8
Published Mar 17, 2015
Version 1.0Was this article helpful?
This one doesn't work. I tried the below code without any if statements:
when HTTP_REQUEST {
HTTP::header remove "X-UA-Compatible"
HTTP::header insert "X-UA-Compatible" "IE=11.0"
}
when HTTP_RESPONSE {
HTTP::header remove "X-UA-Compatible"
HTTP::header insert "X-UA-Compatible" "IE=11.0"
set user_agent [HTTP::header "X-UA-Compatible"]
log local0. "User agent value is $user_agent"
}
My problem is - I have a website which works externally well on all browsers and internally on all except IE. It's trying to emulate website using version IE7 and giving warning popup message about IE compatibility.
I need to force the HTTP Response to the internal users to use IE11.