For our web application, we are sending the X-UA-Compatible -> IE=EmulateIE7 for all the pages. However, the Compatibility View Button next to the Refresh button, is still displayed.
1) Is this expected behaviour?
2) Shouldn’t the HTTP header force the browser to display in IE7 mode (with Quirks + IE7Standards enabled), and then now show the Compatibility View button?
If a site is not IE8 ready, is there a way to force IE7 emulation, and thus disable this button?
According to Just The Facts: Recap of Compatibility View you’ve declared [your website] "ready" for Internet Explorer 8 through the use of the versioning tag. The Compatibility View button should not be displayed:
If you’re using an HTTP header, have you used Fiddler to verify that the
X-UA-Compatibleheader is actually being delivered on every page?If you’re using a
METAtag, then according to META Tags and Locking in Future Compatibility:Lastly, is IE8 actually in Compatibility View when the button shows up? If so, it is possible that your website is in IE8’s compatibility list from Microsoft, or in the local client configuration:
Tools>Compatibility View Settings