Chrome的“请求桌面版网站”选项工作? [英] How does Chrome's "Request Desktop Site" option work?
问题描述
对于iOS谷歌浏览器,当用户点击请求桌面网站按钮时,浏览器做什么来尝试启动桌面网站?我想象一下网站所寻找的请求中的某种标题,或者类似的东西? 我认为唯一的不同是请求中的 User-Agent:
标头。
以下是我在Chrome上发送的User-Agent标头Android设备:
Mozilla / 5.0(Linux; Android 4.0.4; Galaxy Nexus Build / IMM76K)AppleWebKit / 535.19(KHTML,如Gecko)Chrome / 18.0.1025.166 Mobile Safari / 535.19
$ b Mozilla / 5.0(X11; Linux x86_64)AppleWebKit / 535.19(KHTML,如Gecko)Chrome / 18.0.1025.45 Safari / 535.19
请注意第一个单词Mobile以及Android系统和设备。看到它还提供了错误的信息 - 即X11和x86_64 - 与Desktop Linux版本的Chrome发送的值非常匹配。
For iOS google chrome, when a user hits the "Request desktop site" button what does the browser do to try to bring up a desktop site? I imagine some sort of header on the request that sites are looking for, or something similar?
I think the only difference is the User-Agent:
header in the request.
Here are the User-Agent headers sent by Chrome on my Android device:
Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76K) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.45 Safari/535.19
Notice the word "Mobile' in the first one, and also the mention of Android system and device. Checking these, I see that it also provides false information - namely X11 and x86_64 - to closely match the value sent by the Desktop Linux version of Chrome.
这篇关于Chrome的“请求桌面版网站”选项工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!