learn
learn copied to clipboard
You should be using the MD5sum HTTP response header for wget-finder
I'm pretty sure most HTTP servers support just returning the MD5sum of a file, so you can just request that instead of downloading the whole file and MD5summing it locally (and wasting bandwidth/time).
I might make a PR of this tomorrow if I have time
really good idea, btw! saw this on HN
Thanks for commenting, indeed, wget-finder could be smarter about it, it could check the Content-MD5 tag whenever it's available (and whenever wget supports the -S flag, the busybox version doesn't), it could also try to guess md5sum files placed side by side to the target file.
If you don't have time soon, I'll give it a try the next time I touch the code, thanks for the idea =)!