ddliu / gulp-remote-src

Remote gulp.src
MIT License
20 stars 6 forks source link

Feature Request: Add support for caching #15

Open amtlib-dot-dll opened 6 years ago

amtlib-dot-dll commented 6 years ago

Some remote contents is quite large and they won't change at all and it would be nice if developers can pass an option to indicate gulp-remote-src to cache them in order to increase build speed. Thanks!

nathancarter commented 5 years ago

Note that the last modified date of the remote resource can be fetched with the HEAD method in the HTTP protocol, so that you can tell if the file on disk is out of date compared to the remote resource. See this SO post for details:

https://stackoverflow.com/questions/5922842/getting-http-headers-with-node-js