Edge 12 和 13 的用户代理是否不同? [英] Do the user agents of Edge 12 and 13 differ?

查看:43
本文介绍了Edge 12 和 13 的用户代理是否不同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对我的网页的许多请求在用户代理字符串中包含Edge/12".没有包含Edge/13".

Many requests for my web page include "Edge/12" in user agent strings. None contain "Edge/13".

微软博客 表示令牌字符串应指示 Edge 的版本.

The Microsoft blog said that token string should indicate the version of Edge.

...但我的网页每天访问量超过 4 万次,但似乎没有来自 Edge 13 的访问 - 它们都来自 Edge 12.

... yet my web page which gets 40K+ visits a day seems to have no visits from Edge 13 - they're all from Edge 12.

微软关于 Edge 用户代理的文档是否与 Edge 13 的用户代理实际相符?

Do Microsoft's docs on Edge's user agent match what Edge 13's user agent actually is?

嗯……这个来源声称大多数 Edge 用户都在 13 岁,但它是怎么知道的?

Well ... this source claims that most Edge users are on 13, but how does it know that?

推荐答案

是的,用户代理字符串不同.它甚至包含内部版本号.这是 Edge 桌面 UA 字符串的模式:

Yes, the user agent string is different. It even contains the build number. This is the pattern for the Edge Desktop UA String:

Mozilla/5.0 (Windows NT 10.0; <64-bit tags>) AppleWebKit/<WebKit Rev> (KHTML, like Gecko) Chrome/<Chrome Rev> Safari/<WebKit Rev> Edge/<EdgeHTML Rev>.<Windows Build>

对于我的系统,这是:

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586

旧的 Edge 12 UA 字符串是:

An older Edge 12 UA string was:

Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136

您可以在此处找到有关此主题的 Microsoft 文档:https://msdn.microsoft.com/en-us/library/hh869301(v=vs.85).aspx

You can find the Microsoft documentation on this topic here: https://msdn.microsoft.com/en-us/library/hh869301(v=vs.85).aspx

我猜您的用户代理检测代码没有正确检测 Edge 版本.这证明了完全应该避免依赖 UA 字符串这一点.

I guess your user agent detection code does not detect the Edge version correctly. This proofs the point that one should avoid relying on the UA string at all.

这篇关于Edge 12 和 13 的用户代理是否不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆