<div dir="ltr"><span style="font-size:12.8px">We have a situation where we need to filter compressed HTTP traffic through an ICAP service, logging failures (4xx) or passing the original compressed payload to it's target destination on 2xx.</span><div style="font-size:12.8px"><div><br></div><div>Something like this:</div><div><ul style="margin:0px 0px 1em 30px;padding:0px;border:0px;color:rgb(34,36,38);font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;line-height:19.5px"><li style="margin:0px 0px 0.5em;padding:0px;border:0px;word-wrap:break-word">Incoming compressed HTTP</li><li style="margin:0px 0px 0.5em;padding:0px;border:0px;word-wrap:break-word">Decompress and forward to ICAP service</li><li style="margin:0px 0px 0.5em;padding:0px;border:0px;word-wrap:break-word">Log and discard if ICAP service returns 4xx</li><li style="margin:0px;padding:0px;border:0px;word-wrap:break-word">Send original, compressed payload to destination if ICAP returns 2xx</li></ul><div><font color="#222426" face="Arial, Helvetica Neue, Helvetica, sans-serif"><span style="line-height:19.5px">Is that an appropriate use for Squid? If so what sort of configuration commands would we use? We're not certain where to begin.</span></font></div></div><div><font color="#222426" face="Arial, Helvetica Neue, Helvetica, sans-serif"><span style="line-height:19.5px"><br></span></font></div><div><font color="#222426" face="Arial, Helvetica Neue, Helvetica, sans-serif"><span style="line-height:19.5px">Thanks in advance.</span></font></div></div></div>