Changing the Chrome on iOS User Agent for Request Desktop Site

Chrome on iOS sends two different User-Agent strings, depending on the version of the site being requested by the user. In M84 and earlier, the User-Agent string sent when the Request Desktop Site option was selected matched the string used by Safa…


This content originally appeared on Chromium Blog and was authored by Chromium Blog

Chrome on iOS sends two different User-Agent strings, depending on the version of the site being requested by the user.

In M84 and earlier, the User-Agent string sent when the Request Desktop Site option was selected matched the string used by Safari Desktop.

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.1 Safari/605.1.15

Starting with M85, the User-Agent string sent with the Request Desktop Site option changes to include the CriOS/<MajorVersion> tag.


Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/85 Version/11.1.1 Safari/605.1.15



This brings the string more in-line with the default User-Agent used to request the Mobile version of the site. The User-Agent string sent in this case remains the same, matching the Mobile Safari user agent, with CriOS/<ChromeRevision> instead of Version/<VersionNum>.


Mozilla/5.0 (iPhone; CPU iPhone OS 10_3 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) CriOS/56.0.2924.75 Mobile/14E5239e Safari/602.1



The goal of this change is to allow developers to tailor the user experiences to account for differences between Chrome and Safari on iOS. This change adds more information to the Desktop User-Agent string, but including the browser name and major version in the User Agent header is still in line with the goals of Chrome’s User Agent information reduction plans.


Posted by Gauthier Ambard, Software Engineer, Chrome on iOS


This content originally appeared on Chromium Blog and was authored by Chromium Blog


Print Share Comment Cite Upload Translate Updates
APA

Chromium Blog | Sciencx (2020-09-14T13:16:00+00:00) Changing the Chrome on iOS User Agent for Request Desktop Site. Retrieved from https://www.scien.cx/2020/09/14/changing-the-chrome-on-ios-user-agent-for-request-desktop-site/

MLA
" » Changing the Chrome on iOS User Agent for Request Desktop Site." Chromium Blog | Sciencx - Monday September 14, 2020, https://www.scien.cx/2020/09/14/changing-the-chrome-on-ios-user-agent-for-request-desktop-site/
HARVARD
Chromium Blog | Sciencx Monday September 14, 2020 » Changing the Chrome on iOS User Agent for Request Desktop Site., viewed ,<https://www.scien.cx/2020/09/14/changing-the-chrome-on-ios-user-agent-for-request-desktop-site/>
VANCOUVER
Chromium Blog | Sciencx - » Changing the Chrome on iOS User Agent for Request Desktop Site. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2020/09/14/changing-the-chrome-on-ios-user-agent-for-request-desktop-site/
CHICAGO
" » Changing the Chrome on iOS User Agent for Request Desktop Site." Chromium Blog | Sciencx - Accessed . https://www.scien.cx/2020/09/14/changing-the-chrome-on-ios-user-agent-for-request-desktop-site/
IEEE
" » Changing the Chrome on iOS User Agent for Request Desktop Site." Chromium Blog | Sciencx [Online]. Available: https://www.scien.cx/2020/09/14/changing-the-chrome-on-ios-user-agent-for-request-desktop-site/. [Accessed: ]
rf:citation
» Changing the Chrome on iOS User Agent for Request Desktop Site | Chromium Blog | Sciencx | https://www.scien.cx/2020/09/14/changing-the-chrome-on-ios-user-agent-for-request-desktop-site/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.