Last active
December 24, 2015 08:49
-
-
Save chrisjlee/6773082 to your computer and use it in GitHub Desktop.
apache set headers to set ie8 rendering 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
# http://stackoverflow.com/a/6018834/171217 | |
# http://hsivonen.iki.fi/doctype/ | |
# http://msdn.microsoft.com/en-us/library/hh781499(v=vs.85).aspx | |
BrowserMatch MSIE best-standards-support | |
Header set X-UA-Compatible IE=8 env=best-standards-support | |
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
# Or borrowed from H5BP | |
# Set to edge mode | |
<IfModule mod_setenvif.c> | |
<IfModule mod_headers.c> | |
BrowserMatch MSIE best-standards-support | |
Header set X-UA-Compatible IE=edge env=best-standards-support | |
</IfModule> | |
</IfModule> | |
# Emulate IE8 | |
<IfModule mod_setenvif.c> | |
<IfModule mod_headers.c> | |
BrowserMatch MSIE best-standards-support | |
Header set X-UA-Compatible IE=8 env=best-standards-support | |
</IfModule> | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
More resources: