Skip to content

Instantly share code, notes, and snippets.

@kdimatteo
Last active December 27, 2015 00:39
Show Gist options
  • Save kdimatteo/7239451 to your computer and use it in GitHub Desktop.
Save kdimatteo/7239451 to your computer and use it in GitHub Desktop.
Apache: Force IE out of compatibility mode from the server
<IfModule mod_headers.c>
Header set X-UA-Compatible "IE=edge"
# "mod_headers" can't match based on the content-type, however, we only
# want to send this header for HTML pages and not for the other resources
<FilesMatch "\.(appcache|crx|css|cur|eot|gif|htc|ico|jpe?g|js|m4a|m4v|manifest|mp4|oex|oga|ogg|ogv|otf|pdf|png|safariextz|svgz?|ttf|vcf|webapp|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