kevva / download

Download and extract files
MIT License
1.28k stars 200 forks source link

Only download and update file if they have modified? #118

Closed stevemao closed 7 years ago

stevemao commented 7 years ago

If the destination option is supplied, issue an HTTP HEAD request to just get the headers, then compare the timestamp in the header to the last-modified timestamp on the file.

sindresorhus commented 7 years ago

Seems like something that could be done on top of download. I don't think it's worth adding here.