Skip to content

Instantly share code, notes, and snippets.

@rickharris
Created August 11, 2010 04:26
Show Gist options
  • Save rickharris/518476 to your computer and use it in GitHub Desktop.
Save rickharris/518476 to your computer and use it in GitHub Desktop.
# Force the latest IE version, in various cases when it may fall back to IE7 mode
# github.com/rails/rails/commit/123eb25#commitcomment-118920
# Use ChromeFrame if it's installed for a better experience for the poor IE folk
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
BrowserMatch MSIE ie
Header set X-UA-Compatible "IE=Edge" env=ie
BrowserMatch chromeframe gcf
Header append X-UA-Compatible "chrome=1" env=gcf
</IfModule>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment