<div dir="ltr"><div>I tried using "ignore-cc" option but still squid is honoring cache-control header. It tries to re validate the cache on every HTTP request. The configurations are below.<br></div><div>Please correct me if anything is wrong.<br></div><div><u><b><br>Squid.conf</b></u><br>http_port 3128<br>http_port 3129 tproxy<br>http_port 80 accel defaultsite=<a href="http://abcexample.com">abcexample.com</a> ignore-cc<br>cache_peer <a href="http://abcexample.com">abcexample.com</a> parent 80 0 no-query originserver name=myAccel<br><br>acl our_sites dstdomain <a href="http://abcexample.com">abcexample.com</a><br>http_access allow our_sites<br>cache_peer_access myAccel allow our_sites<br>cache_peer_access myAccel deny all<br><br><u><b>Option used</b></u><br>curl -H "cache-control:no-cache" --interface "20.10.10.2" <a href="http://abcexample.com">http://abcexample.com</a> -x localhost:3128<br><br></div><div><u><b>access.log</b></u><br><b>1456717487.024    959 20.10.10.2 TCP_MISS/200 34229 GET <a href="http://abcexample.com/">http://abcexample.com/</a> - FIRSTUP_PARENT/<a href="http://10.10.20.1">10.10.20.1</a> text/html<br>1456717491.113    977 20.10.10.2 TCP_CLIENT_REFRESH_MISS/200 34272 GET <a href="http://abcexample.com/">http://abcexample.com/</a> - FIRSTUP_PARENT/<a href="http://10.10.20.1">10.10.20.1</a> text/html<br><br></b></div><div>- Cross<b><br></b></div><div><br></div><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 28, 2016 at 1:37 PM, Amos Jeffries <span dir="ltr"><<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</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 28/02/2016 8:18 p.m., Anonymous cross wrote:<br>
> Sorry for nagging.  We want to use both tproxy and accelerator mode. Mainly<br>
> tproxy for internet traffic and accelerator mode for web server. Also we<br>
> want to ignore cache control header in the HTTP requests destined for our<br>
> webserver (<a href="http://abcexample.com" rel="noreferrer" target="_blank">abcexample.com</a>)  Does the below configuration work ? or Do we<br>
> need to do add IPtables rules?<br>
<br>
</span>Ah. Okay. Yes the below should do what you are asking for. Except...<br>
<span class=""><br>
><br>
> http_port 3128<br>
> http_port 3129 tproxy<br>
> http_port 80 accel defaultsite=<a href="http://abcexample.com" rel="noreferrer" target="_blank">abcexample.com</a> ignore-cc<br>
><br>
><br>
> cache_peer <a href="http://abcexample.com/data/" rel="noreferrer" target="_blank">abcexample.com/data/</a> parent 80 0 no-query originserver<br>
> name=myAccel<br>
<br>
<br>
</span> ... dont put the "/data/" path segment there, the parameter is just the<br>
hostname of the server to open TCP connections to.<br>
<span class="im HOEnZb"><br>
><br>
> acl our_sites dstdomain <a href="http://abcexample.com" rel="noreferrer" target="_blank">abcexample.com</a><br>
> http_access allow our_sites<br>
> cache_peer_access myAccel allow our_sites<br>
> cache_peer_access myAccel deny all<br>
><br>
<br>
<br>
</span><div class="HOEnZb"><div class="h5">Amos<br>
<br>
_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Regards,<br>Anonymous cross.</div>
</div>