Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

For example lets take the images of this link. The first PNG can be viewed in Chome 24 or Opera 12 simply by clicking it. But the third PNG can not be viewed with the browser. Instead both browsers want to download the image.

This also happens with JPG and other PNG files, not just with the example images above.

The strange thing is, that Internet Explorer 10 shows both images just fine.
Whats the reason behind this?

Used browsers

  • Opera 12.13 (tested with new profile)
  • Chrome 24 (tested with new profile)
  • Internet Explorer 10
share|improve this question
    
Firefox (at least the v.9.0.1 at my university library) does the same, except for all of them, except main-window.png and the text file. –  theUg Feb 4 '13 at 1:48

1 Answer 1

up vote 1 down vote accepted

Interesting. Links to the first two images use the same syntax and they both go to the same directory. They are both apparently valid png files (haven't verified that). But the googlecode server handles them differently. The first (that displays) it returns as type "text/plain".

HTTP/1.1 200 OK
Date: Wed, 30 Jan 2013 20:05:47 GMT
Server: Apache
Last-Modified: Mon, 27 Feb 2012 15:02:40 GMT
ETag: "228//4star-oyksoft-plain.png"
Expires: Wed, 30 Jan 2013 20:08:47 GMT
Content-Length: 4549
Content-Type: text/plain

The 2nd (downloaded) is returned as "application/octet-stream".

HTTP/1.1 200 OK
Last-Modified: Mon, 13 Aug 2012 12:54:41 GMT
Content-Length: 2330
Content-Type: application/octet-stream
Date: Wed, 30 Jan 2013 20:06:09 GMT
Server: Apache
ETag: "288//badge.png"

Apparently the browser tries to handle the text version, but punts on the application type and just downloads it ("Hey user, you figure it out"). So it looks like that server is returning different responses for some unknown reason.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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