Skip to content

Instantly share code, notes, and snippets.

@chrisjlee
Last active December 24, 2015 08:49
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 chrisjlee/6773082 to your computer and use it in GitHub Desktop.
Save chrisjlee/6773082 to your computer and use it in GitHub Desktop.
apache set headers to set ie8 rendering mode
# 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
# 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