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
I can see in my proxy (Squid) logs that it receives the request - and it serves the page fine etc. However, I want Squid to cache the result, but Squid is being called using HTTP CONNECT method, which means that I have no way of caching the results on Squid. For any proxy to cache results, it cannot be called using the CONNECT method.
Essentially Got is tunneling the request to Squid using the HttpProxyAgent.
How can I set it up, so that the request is not tunnelled - I just want to connect to the proxy in a normal way (not using CONNECT).
The text was updated successfully, but these errors were encountered:
Looking at the code, you can't. This library is precisely about tunnelling through HTTP CONNECT. You can take a look at https://github.com/TooTallNate/node-http-proxy-agent which does that, although it's unmaintained.
I have the following code:
I can see in my proxy (Squid) logs that it receives the request - and it serves the page fine etc. However, I want Squid to cache the result, but Squid is being called using HTTP CONNECT method, which means that I have no way of caching the results on Squid. For any proxy to cache results, it cannot be called using the CONNECT method.
Essentially Got is tunneling the request to Squid using the HttpProxyAgent.
How can I set it up, so that the request is not tunnelled - I just want to connect to the proxy in a normal way (not using CONNECT).
The text was updated successfully, but these errors were encountered: