alibaba / anyproxy

A fully configurable http/https proxy in NodeJS
http://anyproxy.io
Apache License 2.0
7.75k stars 1.21k forks source link

add cache option #566

Open Dong-Gao opened 3 years ago

Dong-Gao commented 3 years ago

add cache option the default/missing cache value is false, which means it does not store response body on local disk, so no longer worry about too much disk usage; when cache is false, the webinterface is forced to disable

If you want to keep local cache, e.g the webInterface is needed, you can also set cache value to true

const options = {
  port: 8001,
  cache: false
};

const proxyServer = new AnyProxy.ProxyServer(options);
CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.