internet-explorerhttp-headersmeta-tagsx-ua-compatible

Which X-UA-Compatible takes precedence? Http-header or Meta-tags?


As the question states basically. If you have X-UA-Compatible in both your HTTP headers and a meta tag on your document, and they conflict, which one gets respected by IE?


Solution

  • TL;DR: The meta tag wins

    I found the following (updated) flowchart here (link is broken) and associated blog post that provides an explanation of how IE9 determines document mode:

    enter image description here