Created
March 4, 2014 16:19
-
-
Save JTLR/f135150f4a4acb523e30 to your computer and use it in GitHub Desktop.
Disable compatibility mode on IE
This file contains hidden or 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
<IfModule mod_setenvif.c> | |
<IfModule mod_headers.c> | |
BrowserMatch MSIE ie | |
Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie | |
</IfModule> | |
</IfModule> | |
<IfModule mod_headers.c> | |
# Because X-UA-Compatible isn't sent to non-IE (to save header bytes), | |
# We need to inform proxies that content changes based on UA | |
Header append Vary User-Agent | |
# Cache control is set only if mod_headers is enabled, so that's unncessary to declare | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment