4 ms·
curl -I http://www.smugmug.com/test/safari/300k.jpg http://www.smugmug.com/test/safari/300k.jpg HTTP/1.1 200 OK Date: Sun, 06 Apr 2008 15:16:43 GMT Serve
by aschobel 19y ago
curl -I http://www.smugmug.com/test/safari/300k.jpg http://www.smugmug.com/test/safari/300k.jpg
HTTP/1.1 200 OK
Date: Sun, 06 Apr 2008 15:16:43 GMT
Server: Apache
Last-Modified: Mon, 17 Mar 2008 06:17:28 GMT
ETag: "4c00f-f9632e00"
Accept-Ranges: bytes
Content-Length: 311311
Content-Type: image/jpeg
Bug? Why doesn't he add an Expires header?
http://developer.yahoo.com/performance/rules.html#expires http://developer.yahoo.com/performance/rules.html#expires
- sc 19y agoHe wrote, in the comments, that this doesn't fix the problem. I did a local test with the first photo I came to and found the same: http://www.flickr.com/photos/pmorgan/32606683/sizes/l/ http://www.flickr.com/photos/pmorgan/32606683/sizes/l/ Even with the Expires header set, it re-requests the entire image.
- pistoriusp 19y agoFrom the comments on the site: Don, You aren’t serving the files with any Cache-Control or Expires header ? Does it make any difference if you add those headers @Yusuf Goolamabbas Nope, makes no difference. :(
- aschobel 19y agoI mirrored the files to my server and Safari reloads the images on restart. http://3banana.com/pics/cache_test/jpgtest.html http://3banana.com/pics/cache_test/jpgtest.html YSlow gives the page a score of 98, so I know the headers are being set properly. Okay, that is bloody weird.