Emulate IE7 header insertion in response for IE8
Problem this snippet solves: Insert an HTTP header in responses to Internet Explorer 8 clients which tells the client to emulate Internet Explorer 7 when rendering the web application content.
ear...
Published Mar 17, 2015
Version 1.0hooleylist
Cirrostratus
Joined September 08, 2005
hooleylist
Cirrostratus
Joined September 08, 2005
Sunny_Sareen
Mar 16, 2020Nimbostratus
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.