From 620e8aa73d3120bd0bba9bb224b7a01ba4d10f9c Mon Sep 17 00:00:00 2001
From: MK <kohenkatz@gmail.com>
Date: Wed, 7 May 2014 22:16:20 -0400
Subject: [PATCH] Prevent IE Compatibility Mode

As discussed at https://meta.discourse.org/t/ie10-user-is-getting-your-browser-is-too-old/15289
---
 config/nginx.sample.conf | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/config/nginx.sample.conf b/config/nginx.sample.conf
index ecf445f1f..fdad4d38b 100644
--- a/config/nginx.sample.conf
+++ b/config/nginx.sample.conf
@@ -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;