Skip to content

Instantly share code, notes, and snippets.

@n3dst4
Last active December 17, 2015 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n3dst4/5663823 to your computer and use it in GitHub Desktop.
Save n3dst4/5663823 to your computer and use it in GitHub Desktop.
Make IIS serve a header which will get IE into the latest standards mode
<!--
It's all about "forcing" with MS stuff. *Force* IIS to serve a header which will
*force* IE not to use it's shitty compatibility mode, even if it's an intranet
site and the client has "display intranet sites in compatibility view" ticked in
their compatibility prefs.
The alternative is to include the equivalent <meta http-equiv...> in your
markup, but that will sometimes be ignored.
This header is discouraged by MS for production environments. Then again, MS is
the company that gave us Internet Explorer, so, like, what do they know anway?
So anyway, if you're using IIS, shove the following up your web.config:
-->
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="X-UA-Compatible" value="IE=edge" />
</customHeaders>
</httpProtocol>
</system.webServer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment