5

I'm wondering what people's best practices for handling the Chrome option on Android of "Request Desktop Site" when a site is developed using media queries. When the site is viewed the media queries are applied and the site is scaled according to the css rules defined, i.e not how the site appears on "desktop". However, when the Request Desktop Site option is used the media queries kick in again and the scaled version of the site is delivered.

Is this acceptable or should something be put in place to only apply the media queries depending on the User-Agent header passed to the site?

1

1 Answer 1

2

No, it is not acceptable. The web server should only deliver what the user agent tells the server to deliver. This is what the user agent does, even though it has changed since the origin, it is still valid and a cornerstone of web technologies.

"In HTTP, the User-Agent string is often used for content negotiation, where the origin server selects suitable content or operating parameters for the response. For example, the User-Agent string might be used by a web server to choose variants based on the known capabilities of a particular version of client software." - Wikipedia: User Agent

On Windows Phone 7, Internet Explorer delivers exactly what you expect – the full version of the site. And I find this site particular well designed where you have the option directly on the site itself – instead of having to tweak your browser settings. At the bottom of this site – there is a link (in mobile view) to access the full site (read desktop version). Pushing the link – you get exactly what you expect: the full site. This is caring and understanding user needs.

UX.SE mobile view showing full site option

There are actually two options here:

  1. Follow the user agent in every step
  2. Implement a “full site” option on the mobile view

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.