[squid-users] Can squid work as http response parse only ?

Amos Jeffries squid3 at treenet.co.nz
Fri Apr 21 05:34:03 UTC 2017


On 21/04/17 15:37, 钱国正 wrote:
> I know squid+ecap can modify http response with a relatively fast 
> speed, and I have done that before.
> But, in real environment, there is a lot of reqeusts, that don't need 
> processs http response, which would make network slow.
> So I am thinking whether I can use libnetfilter_queue to judge that 
> http response has content-type with text/html , if it has such
> things, we can redirect the packet to squid or some http parser, then 
> modify it and send it to client.
>
> I don't know whether it can work, if not, can anyone give me some advice.

It cannot. If the request is not sent through Squid there is no way it 
can correctly handle the response.

Amos



More information about the squid-users mailing list