Last active
December 17, 2015 19:58
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
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