Merge pull request #2325 from kohenkatz/master

Prevent IE Compatibility Mode
This commit is contained in:
Sam 2014-05-08 12:26:05 +10:00
commit e76304cf66
1 changed files with 7 additions and 0 deletions

View File

@ -42,6 +42,13 @@ server {
# path to discourse's public directory
set $public /var/www/discourse/public;
# Prevent Internet Explorer 10 "compatibility mode", which breaks Discourse.
# If other subdomains under your domain are supposed to use Internet Explorer Compatibility mode,
# it may be used for this one too, unless you explicitly tell IE not to use it. Alternatively,
# some people have reported having compatibility mode "stuck" on for some reason.
# (This will also prevent compatibility mode in IE 8 and 9, but those browsers aren't supported anyway.
add_header X-UA-Compatible "IE=edge";
location / {
root $public;