sindresorhus / got

🌐 Human-friendly and powerful HTTP request library for Node.js
MIT License
14.33k stars 941 forks source link

How to overwrite cache on request basis? #1752

Closed StarpTech closed 3 years ago

StarpTech commented 3 years ago

What would you like to discuss?

Hi, some services don't implement RFC 7234 compliant HTTP caching. Is it possible to enforce caching with a fixed TTL value? Is it possible to configure the https://github.com/lukechilds/cacheable-request#optsmaxttl in got?

Checklist

szmarczak commented 3 years ago

Currently not yet. Closing in favor of #875