Feb. 9th, 2013

torkell: (Default)

This is what happened when I clicked on a photo in a blog I read:

Now, you may be thinking that IE is doing something weird. But actually, IE is behaving exactly as it should. It's the server that's at fault:

HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Cache-Control: public,max-age=49317
Content-Disposition: attachment;filename=p.txt
Content-Type: image/jpeg; charset=UTF-8
Date: Sat, 09 Feb 2013 22:09:45 GMT
Expires: Sun, 10 Feb 2013 11:51:42 GMT
Via: HTTP/1.1 GWA
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Content-Length: 781118
X-Frame-Options: SAMEORIGIN
Server: GSE

Why yes, the server is telling the browser that it should save (not display) the image, and that the preferred filename is "p.txt". Glorious, isn't it?

May 2025

S M T W T F S
    123
45678910
111213141516 17
18192021222324
25262728293031

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 19th, 2025 08:43 am
Powered by Dreamwidth Studios