Sunday 28 July 2019

Is it possible to cache stream with request('API').pipe?

Hi guys, I want to ask a question about Nodejs stream with request library. I made an issue here but none respond to me.https://github.com/request/request/issues/3186Let me summarize it:This is an example from request's README.md file (https://github.com/request/request#streaming):request('http://google.com/doodle.png').pipe(fs.createWriteStream('doodle.png')) My concern is : Is it possible to cache request('http://google.com/doodle.png'), so it will reduce a lot of workload for external server.Thanks for reading my question!

Submitted July 29, 2019 at 04:24AM by ChauGiang

No comments:

Post a Comment