4 ms·
If you download the files to disk, you'll get the right values: $ curl -s https://blog.cloudflare.com/content/images/2015/08/white.jpg > file && md5 file
by pcl 11y ago
If you download the files to disk, you'll get the right values:
$ curl -s https://blog.cloudflare.com/content/images/2015/08/white.jpg > file && md5 file
MD5 (file) = b69dd1fd1254868b6e0bb8ed9fe7ecad
I've seen this same sort of thing happen with curl in other contexts, but I've never tracked down the details. I assume it has something to do with file stream handling in certain versions of curl. You'll see a discrepancy if you look at the output of piping to 'wc' vs. examining the downloaded file.
- schoen 11y agoI ran the same curl command twice in a row and got files with different sizes! I think it actually does have to do with Cloudflare rather than with curl in this case.
- richardwhiuk 11y agoApparently sometimes the CDN is stripping the EXIF data