3 ms·
Note that the compat mode may mean that you are miscounting IE8 users in IE7 compat mode as IE7 if you are doing a naive user-agent detection (I only mention it
by Erwin 13y ago
Note that the compat mode may mean that you are miscounting IE8 users in IE7 compat mode as IE7 if you are doing a naive user-agent detection (I only mention it because I did and started blocking IE8 users!)
Both will emit "MSIE 7.0" in the user-agent, but IE8 will have Trident/4 while IE7 lacks any such token. MSIE 11 does away with "MSIE" in the user-agent altogether.
There's a X-UA-Compatible header (and meta variable) you can emit to ask for no compat checks.
- felickz2 13y agoIE11 in compatibility mode does indeed keep the MSIE value... here is mine: User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)