Skip to content

Instantly share code, notes, and snippets.

@davidalexander
Created July 16, 2011 21:15
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 davidalexander/1086801 to your computer and use it in GitHub Desktop.
Save davidalexander/1086801 to your computer and use it in GitHub Desktop.
Magento fix for IE9 issues
### 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