Chrome 的“请求桌面站点"如何处理?选项工作? [英] How does Chrome's "Request Desktop Site" option work?

查看:17
本文介绍了Chrome 的“请求桌面站点"如何处理?选项工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于 iOS 谷歌浏览器,当用户点击请求桌面站点"按钮时,浏览器如何尝试启动桌面站点?我想象网站正在寻找的请求上有某种标头,或类似的东西?

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?

推荐答案

我认为唯一的区别是请求中的 User-Agent: 标头.

I think the only difference is the User-Agent: header in the request.

以下是 Chrome 在我的 Android 设备上发送的 User-Agent 标头:

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

注意第一个中的Mobile"这个词,还有提到Android系统和设备.检查这些,我看到它还提供了虚假信息——即X11和x86_64——与桌面发送的值紧密匹配Linux 版 Chrome.

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屋!

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