[squid-users] Ignore "pragma:no-cache /cache-control:no-cache" header in HTTP request< config help>

Amos Jeffries squid3 at treenet.co.nz
Sun Feb 28 19:37:45 UTC 2016


On 28/02/2016 8:18 p.m., Anonymous cross wrote:
> Sorry for nagging.  We want to use both tproxy and accelerator mode. Mainly
> tproxy for internet traffic and accelerator mode for web server. Also we
> want to ignore cache control header in the HTTP requests destined for our
> webserver (abcexample.com)  Does the below configuration work ? or Do we
> need to do add IPtables rules?

Ah. Okay. Yes the below should do what you are asking for. Except...

> 
> http_port 3128
> http_port 3129 tproxy
> http_port 80 accel defaultsite=abcexample.com ignore-cc
> 
> 
> cache_peer abcexample.com/data/ parent 80 0 no-query originserver
> name=myAccel


 ... dont put the "/data/" path segment there, the parameter is just the
hostname of the server to open TCP connections to.

> 
> acl our_sites dstdomain abcexample.com
> http_access allow our_sites
> cache_peer_access myAccel allow our_sites
> cache_peer_access myAccel deny all
> 


Amos



More information about the squid-users mailing list