<div dir="ltr">As Alex mentioned its not possible to do with squid. I modified the squid source code to do this a month ago. Its not hard to do, you will only need to modify http.cc and client_side.cc a bit.<div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 11, 2017 at 9:42 PM, Alex Rousskov <span dir="ltr"><<a href="mailto:rousskov@measurement-factory.com" target="_blank">rousskov@measurement-factory.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 07/10/2017 05:52 PM, avi_h wrote:<br>
<br>
> I'm trying to get squid to use the same headers as it received (to make it<br>
> more transparent)<br>
<br>
</span>To improve your chances of arriving at a usable solution (or quickly<br>
abandoning a futile search), I suggest detailing/narrowing your goal:<br>
"Make it more transparent" to whom and in what way? What specific<br>
problems are you trying to solve? For example:<br>
<br>
* Do you want to configure Squid to become invisible to a knowledgeable<br>
human observer?<br>
<br>
* Do you want to configure Squid to make some server(s) think that the<br>
request is coming directly from a user agent (e.g., browser)? What do<br>
those servers use to detect proxies now?<br>
<br>
Etc. etc. You probably know exactly what you need to achieve. Narrow it<br>
down for us as much as possible.<br>
<span class=""><br>
<br>
> After looking up online I configured the following:<br>
><br>
</span>> request_header_access Cache-Control deny all<br>
<br>
Denying general-purpose headers makes no sense if you want Squid to<br>
forward as many original headers as possible. Yes, Squid may generate<br>
new Cache-Control headers but that does not mean that Squid does not<br>
forward client Cache-Control headers as well. The task of preserving<br>
original headers may feel trivial to you, but the actual complexity of<br>
what you are asking is one of the reasons we need you to come up with a<br>
narrower goal.<br>
<span class=""><br>
<br>
> Is there any way to have squid generate the exact same headers as it<br>
> received?<br>
<br>
</span>No. However, you probably do not actually need that. You probably need<br>
something else that Squid may be able to do (with or without code<br>
modifications).<br>
<span class="HOEnZb"><font color="#888888"><br>
Alex.<br>
</font></span><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.<wbr>org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/<wbr>listinfo/squid-users</a><br>
</div></div></blockquote></div><br></div></div>