mistval / node-fetch-cache

Node-fetch with built-in response caching.
MIT License
51 stars 8 forks source link

Support passing in a fetch object? #34

Open broksonic21 opened 11 months ago

broksonic21 commented 11 months ago

Been using node-fetch-cache and big fan, but a few pieces of feedback. I'll file them as separate PRs from what we've run into. Thanks for consideration!

It would be nice to be able to pass in a fetch object to use vs the hard-coded fetch.

that would allow using something like https://www.npmjs.com/package/fetch-retry underneath and caching the final results.

mistval commented 11 months ago

Hi, thanks for the feedback! I agree that this would be a nice addition.