Closed Bug 961964 Opened 10 years ago Closed 10 years ago

usatoday.com sends desktop site to Firefox OS

Categories

(Web Compatibility :: Site Reports, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: hsteen, Assigned: karlcow)

References

()

Details

(Whiteboard: [serversniff] [country-us] [notcontactready])

Compare the Content-Length of the responses to the following HTTP requests:

GET / HTTP/1.1
Host: www.usatoday.com
User-Agent: Mozilla/5.0 (Android; Mobile; rv:23.0) Gecko/23.0 Firefox/23.0

HTTP/1.1 200 OK
Server: nginx/1.2.7
Content-Type: text/html; charset=utf-8
Last-Modified: Tue, 21 Jan 2014 07:07:47 GMT
Cache-Control: max-age=20
Expires: Tue, 21 Jan 2014 07:09:37 GMT
Date: Tue, 21 Jan 2014 07:09:17 GMT
Connection: keep-alive
Connection: Transfer-Encoding
Vary: User-Agent
Content-Length: 35132

------------------------------------------------------------------
GET / HTTP/1.1
Host: www.usatoday.com
User-Agent: Mozilla/5.0 (Mobile; rv:23.0) Gecko/23.0 Firefox/23.0

HTTP/1.1 200 OK
Server: nginx/1.2.7
Content-Type: text/html; charset=utf-8
Content-Language: en
Last-Modified: Tue, 21 Jan 2014 07:06:21 GMT
X-UA-Compatible: IE=Edge,chrome=1
X-Secret: cnpudnkgcnpiZXZnbUBoZm5nYnFubC5wYnogbmFxIFYganZ5eSBnZWwgZ2IgdHJnIGxiaCBuIHdiby4=
Cache-Control: max-age=20
Expires: Tue, 21 Jan 2014 07:09:52 GMT
Date: Tue, 21 Jan 2014 07:09:32 GMT
Connection: keep-alive
Connection: Transfer-Encoding
Content-Length: 198652

------------------------------------------------------------------
See Also: → 956585
> Which browsers are compatible with the website?
> For the best experience, we recommend running the latest version of the following: Google Chrome, Firefox, Safari, Microsoft Internet Explorer

On http://www.usatoday.com/contactus

Let's say I'm accessing with a random UA, we get Content-Length: 36314

→ http --print hH GET www.usatoday.com
GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: www.usatoday.com
User-Agent: HTTPie/0.7.2

HTTP/1.1 200 OK
Cache-Control: max-age=20
Connection: keep-alive
Content-Encoding: gzip
Content-Language: en
Content-Length: 36314
Content-Type: text/html; charset=utf-8
Date: Thu, 30 Jan 2014 03:47:46 GMT
Expires: Thu, 30 Jan 2014 03:48:06 GMT
Last-Modified: Thu, 30 Jan 2014 03:46:33 GMT
Server: nginx/1.2.7
Vary: Accept-Encoding
X-Secret: cnpudnkgcnpiZXZnbUBoZm5nYnFubC5wYnogbmFxIFYganZ5eSBnZWwgZ2IgdHJnIGxiaCBuIHdiby4=
X-UA-Compatible: IE=Edge,chrome=1


Now if I access with Firefox OS on the ZTE, and I get the same content length than iOS: Content-Length: 8455



→ http --print hH GET www.usatoday.com "User-Agent: $FOSUA"

GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: www.usatoday.com
User-Agent:  Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0

HTTP/1.1 200 OK
Cache-Control: max-age=20
Connection: keep-alive
Content-Encoding: gzip
Content-Length: 8455
Content-Type: text/html; charset=utf-8
Date: Thu, 30 Jan 2014 03:49:10 GMT
Expires: Thu, 30 Jan 2014 03:49:30 GMT
Last-Modified: Thu, 30 Jan 2014 03:46:04 GMT
Server: nginx/1.2.7
Vary: Accept-Encoding
Vary: User-Agent

But the Web site fails on my ZTE. It is trying to download for a very long time and it gives up with an error message. An idea Hallvord?
Assignee: nobody → kdubost
Status: NEW → ASSIGNED
Flags: needinfo?(hsteen)
Whiteboard: [serversniff] [country-us] [contactready] → [serversniff] [country-us] [notcontactready]
on my Geeksphone Peak it sure takes a long time, but eventually loads and works fine, as fine as a heavy desktop site might be expected to work anyway. Is the error message you see from Firefox or from the site?
Flags: needinfo?(hsteen)
ok. this is strange. 
The error message is from Firefox OS, not the site.
This time I got the Web site on the ZTE without error message but quite heavy.

On the command line, we still get a light markup with User-Agent:  Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0

> <div id='mobileweb-banner_topnewsmain' class="ad ad-320-50 ad-wrap-none" 
>   data-position='320x50-top' data-size='[[320, 50]]' 
>   data-unit='/7103/usatoday_mobile/mobileweb-banner_top/news/main' 
>	></div>

The site is loaded through JS. On Firefox Desktop, I tried again, and got a very high CPU. So I guess there is something happening here.
usatoday.com works much better now :)
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: Tech Evangelism → Web Compatibility
Component: Mobile → Site Reports
You need to log in before you can comment on or make changes to this bug.