Skip to content

Instantly share code, notes, and snippets.

@Soraph
Created September 13, 2013 13:04
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 Soraph/6550404 to your computer and use it in GitHub Desktop.
Save Soraph/6550404 to your computer and use it in GitHub Desktop.
.htaccess instruction to force the use of the latest IE version or ChromeFrame if is present
<IfModule mod_headers.c>
Header append X-UA-Compatible "IE=edge,chrome=1"
<FilesMatch "\.(appcache|crx|css|eot|gif|htc|ico|jpe?g|js|m4a|m4v|manifest|mp4|oex|oga|ogg|ogv|otf|pdf|png|safariextz|svg|svgz|ttf|vcf|webm|webp|woff|xml|xpi)$">
Header unset X-UA-Compatible
</FilesMatch>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment