webcompat / web-bugs

A place to report bugs on websites.
https://webcompat.com
Mozilla Public License 2.0
739 stars 63 forks source link

farm3.staticflickr.com - Fails in Firefox, OK in Chrome #686

Closed webcompat-bot closed 9 years ago

webcompat-bot commented 9 years ago

URL: https://farm3.staticflickr.com/2502/3962240223_d9aec47123_o.jpg Browser / Version: Firefox 35.0.1 and Chrome 40.0.2214.111 m (64-bit) Operating System: Windows 7 Problem type: Looks like the browser has a bug Site owner: No

Steps to Reproduce 1) Start Firefox 2) Navigate to: https://farm3.staticflickr.com/2502/3962240223_d9aec47123_o.jpg

Expected Behavior: See a map of Jordan Actual Behavior: Bunch of garbage characters on the screen

3) Start Chrome, navigate to the page in question, see the map of Jordan as expected.

karlcow commented 9 years ago

So I'm not sure why but indeed, the file is served with the wrong content-type:

HTTP/1.1 200 OK
Accept-Ranges: bytes
Age: 107412
Cache-Control: max-age=315360000,public
Connection: keep-alive
Content-Length: 3004684
Content-Type: text/plain; charset=utf-8
Date: Mon, 09 Feb 2015 07:45:51 GMT
Expires: Fri, 07 Feb 2025 12:03:19 UTC
Last-Modified: Sun, 08 Feb 2015 01:55:39 GMT
P3P: policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
Server: ATS
Via: http/1.1 photocache352.flickr.gq1.yahoo.com (ApacheTrafficServer [cMsSfW]), http/1.1 cache127.flickr.sg3.yahoo.com (ApacheTrafficServer [cHs f ])
X-Photo-Origin: gq1
YTraceTag: 000100080000000100000000000000003e5ac2bfd747bd07000000000000000013c12c90e2c22f0013c12c90e36c0f00ad57588300000000835857ad972c1669

A difference between Firefox and Chrome is that Chrome is trying to recover the wrong Content-Type while Firefox respects HTTP.

missic commented 9 years ago

I can not confirm with Firefox 36 on Fedora x86_64. The image is viewed correctly. Response header: Content-Type: image/jpeg

miketaylr commented 9 years ago

Very strange, I get image/jpeg as well but when I visit the page I just see mojibake.

http --print=hH GET https://farm3.staticflickr.com/2502/3962240223_d9aec47123_o.jpg User-Agent:"$FF"
GET /2502/3962240223_d9aec47123_o.jpg HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: farm3.staticflickr.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:35.0) Gecko/20100101 Firefox/35.0

HTTP/1.1 200 OK
Accept-Ranges: bytes
Age: 1898994
Cache-Control: max-age=315360000,public
Connection: keep-alive
Content-Length: 3004684
Content-Type: image/jpeg
Date: Wed, 04 Mar 2015 22:15:29 GMT
Expires: Mon, 10 Feb 2025 08:53:15 UTC
Last-Modified: Mon, 28 Sep 2009 15:29:35 GMT
P3P: policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
Server: ATS
Via: http/1.1 photocache352.flickr.bf1.yahoo.com (ApacheTrafficServer [cHs f ])
X-Photo-Origin: bf1
YTraceTag: 000100080000000100000000000000003bb143c78c8b5699000000000000000013c86b0b06a8190013c86b0b0951e400ddc475d200000000d275c4dd3f7ddbe6

Even weirder, now that I test again in the browser I see a map. :confused: A glitch in the matrix. I say we close before it decides to break again.