added md5&sha1 caching