md5 collision

karlseguin nginx-forum at nginx.us
Thu Sep 13 23:43:16 UTC 2012


Yes, re-requesting the same image will cause the same error (can't say with
100% certainty that it'll always do it though).


sudo hd /mnt/tmp/nginx/cache/5f/85/1b/56cc2e05fb85eb0a806444f1811b855f
00000000  ff d8 ff e0 00 10 4a 46  49 46 00 01 01 00 00 01 
|......JFIF......|

Naively, there doesn't seem to be any special header bytes?

Relevant config is:

  upstream origin_magick {
    server 127.0.0.1:4000;
    keepalive 50;
  }

  proxy_cache_path /mnt/tmp/nginx/cache levels=2:2:2 keys_zone=main:200m
max_size=100G;
  proxy_cache_use_stale updating;
  proxy_http_version 1.1;
  proxy_cache_valid any 1m;
  more_clear_headers 'X-amz-*' 'x-amz-*' 'X-Content-Digest' 'X-Rack-Cache;

    location / {
      proxy_cache_bypass $http_nocache;
      proxy_cache main;
      proxy_pass http://origin_magick;
      more_set_headers -s '404 403' 'Cache-Control: public, max-age=120';
    }

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,230686,230714#msg-230714



More information about the nginx mailing list