Where to set the X-UA-Compatible: IE=Edge?

Sriram picture Sriram · Mar 6, 2013 · Viewed 7.4k times · Source

I want to set X-UA-Compatible: IE=Edge for my webpage hosted in IIS. Where can i set this?

I know that it can be set using two ways

  1. Using IIS http header
  2. setting X-UA-Compatible in html meta tag.

Here my questions

  1. which method should i consider?
  2. In performance perspective which is good?
  3. Will it affect the performance if i set using both the ways. ( assume both are difference values)

Answer

Ronophobia picture Ronophobia · Mar 6, 2013

I would recommend setting it in both the html meta tag as well as the response header. The response header will precede the meta tag but for local purposes, the meta tag will act as a fallback mechanism. Setting both will not affect the performance.