You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Proxy support (http, https, socks, socks4, socks5)
66
65
* Built-in request caching following full HTTP caching rules (`Cache-Control`, `ETag`, `304`s, cache fallback on error, etc).
67
66
* Node.js Stream support
68
67
* Transparent gzip and deflate support
69
68
*[Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity) support
70
-
* Literally punches nazis
71
-
* Built in DNS cache
72
-
* (PENDING) Range request caching and resuming
73
-
74
-
### Contributing
75
-
76
-
The make-fetch-happen team enthusiastically welcomes contributions and project participation! There's a bunch of things you can do if you want to contribute! The [Contributor Guide](https://github.com/npm/cli/blob/latest/CONTRIBUTING.md) outlines the process for community interaction and contribution. Please don't hesitate to jump in if you'd like to, or even ask us questions if something isn't clear.
77
-
78
-
All participants and maintainers in this project are expected to follow the [npm Code of Conduct](https://www.npmjs.com/policies/conduct), and just generally be excellent to each other.
79
-
80
-
Please refer to the [Changelog](CHANGELOG.md) for project history details, too.
81
-
82
-
Happy hacking!
83
-
84
-
### API
69
+
* Proxy support (http, https, socks, socks4, socks5. via [`@npmcli/agent`](https://npm.im/@npmcli/agent))
70
+
* DNS cache (via ([`@npmcli/agent`](https://npm.im/@npmcli/agent))
An object that provides options for the built-in DNS cache. The following options are available:
387
-
388
-
Note: Due to limitations in the current proxy agent implementation, users of proxies will not benefit from the DNS cache.
389
-
390
-
*`ttl`: Milliseconds to keep cached DNS responses for. Defaults to `5 * 60 * 1000` (5 minutes)
391
-
*`lookup`: A custom lookup function, see [`dns.lookup()`](https://nodejs.org/api/dns.html#dnslookuphostname-options-callback) for implementation details. Defaults to `require('dns').lookup`.
0 commit comments