Should I override the header of the “X-UA-Compatible IE = edge” “Show Intranet Sites in Compatibility View” in IE10?

I have a simple HTML5 / ASP.NET site that I started testing in IE10 today since it was released for Win7.

This is the intranet site in my organization, and I believe that a group policy has been deployed to enable Display intranet sites in the default compatibility view .

What I noticed today in testing was that although I add an HTTP header X-UA-compatible IE = edge (via my web.config), the site displays in IE as

Browser Mode: IE10 Compat View Document Mode: Standards 

I believe that my HTML is actually normal, because I can simply uncheck the Show intranet sites in compatibility mode check box, and upon rebooting it will immediately switch to:

 Browser Mode: IE10 Document Mode: Standards 

So my question is simple: should the IE = edge header value not override the settings Show intranet sites in compatibility mode ?

If not, can it be redefined?

+27
html iis internet-explorer-10
Feb 28 '13 at 5:33
source share
3 answers

(I will talk about it here because this question takes a higher place for my google search, but after more digging, I really found the answer to another SO question: https://stackoverflow.com/a/3126269/167 they should be combined (at least without editing some questions))

This probably happens because IE is set to "Display intranet sites in compatibility view" ( Alt + T | Compatibility View Settings)

You cannot override this parameter using the X-UA-Compatible meta tag, but you can send it an X-UA-Compatible http:

 X-UA-Compatible: IE=edge 

A loan is sent to Lavinski to find this

+12
Jun 20 '13 at 10:25
source share

This worked for me, try clearing existing headers before adding a new one or others.

 <httpProtocol> <customHeaders> <clear /> <add name="X-UA-Compatible" value="IE=Edge" /> </customHeaders> </httpProtocol> 
+7
Aug 15 '13 at 16:30
source share

I believe that the X-UA-Compatible forces the mode to be documented, while the "Compatibility mode" turns on the IE7 browser and the document mode -> the document mode has actually been canceled X-UA-Compatible .

See The Difference Between “Browser Mode” and “Document Mode” in Internet Explorer

+1
Feb 28 '13 at 6:01
source share



All Articles