X-UA-Compatible is set to IE=edge, but it still doesn’t stop Compatibility Mode

If you need to override IE’s Compatibility View Settings for intranet sites you can do so in the web.config (IIS7) or through the custom HTTP headers in the web site’s properties (IIS6) and set X-UA-Compatible there. The meta tag doesn’t override IE’s intranet setting in Compatibility View Settings, but if you set it at the hosting server it will override the compatibility.

Example for web.config in IIS7:

        <add name="X-UA-Compatible" value="IE=EmulateIE8" />

Edit: I removed the clear code from just before the add; it was an unnecessary oversight from copying and pasting. Good catch, commenters!

Leave a Comment