开发者

How to test if X-UA-Compatible is served?

开发者 https://www.devze.com 2023-01-31 08:46 出处:网络
How can I test if <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chr开发者_运维技巧ome=1\"> does work? Especially if I let Apache handle it via htaccess.

How can I test if <meta http-equiv="X-UA-Compatible" content="IE=edge,chr开发者_运维技巧ome=1"> does work? Especially if I let Apache handle it via htaccess.

Is there something in the IE developer tools?


Check it in IE8. If it is not set, Tools > Compatibility View will be usable. If it is set, the option will be grayed out and not usable.


check the "page default" of document mode, from IE developer tool bar.


Do you see the "broken" document icon between search and reload icons in the image? This is the Compatibility View button. If the edge value set using the meta tag or htaccess header worked, the Compatibility View button is not shown.

How to test if X-UA-Compatible is served?

Image courtesy of Frank Code blog; you may also have a read at the post, if you want. It's worth it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号