Created
January 1, 2014 16:17
-
-
Save jbutko/8209196 to your computer and use it in GitHub Desktop.
PHP, HTML, htaccess: Fix X-UA-Compatible validation error
This file contains hidden or 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
<?php header('X-UA-Compatible: IE=edge,chrome=1'); | |
// or | |
<IfModule mod_headers.c> | |
Header set X-UA-Compatible "IE=Edge,chrome=1" | |
# mod_headers can't match by content-type, but we don't want to send this header on *everything*... | |
<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> | |
// From http://stackoverflow.com/questions/15443998/x-ua-compatibility-with-http-header |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment