Created
July 16, 2011 21:15
-
-
Save davidalexander/1086801 to your computer and use it in GitHub Desktop.
Magento fix for IE9 issues
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
### IE users need a little help (Magento+IE9=bad times) ### | |
<IfModule mod_setenvif.c> | |
<IfModule mod_headers.c> | |
BrowserMatch MSIE ie | |
Header set X-UA-Compatible "IE=EmulateIE8,chrome=1" env=ie | |
</IfModule> | |
</IfModule> | |
<IfModule mod_headers.c> | |
# Because X-UA-Compatible isn't sent to non-IE (to save header bytes), | |
# We need to inform proxies that content changes based on UA | |
Header append Vary User-Agent | |
# Cache control is set only if mod_headers is enabled, so that's unncessary to declare | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment