Which X-UA-Compatible takes precedence? Http-heade

2019-01-11 07:17发布

问题:

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?

回答1:

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: