Re: [squid-users] Cache-Control: header overwrite doesnt seem to work (squid 2.7)

From: Adrian Chadd <adrian_at_creative.net.au>
Date: Mon, 19 May 2008 03:50:26 +0800

File a bugzilla report?

Adrian

On Thu, May 08, 2008, Christian Seifert wrote:
> Hi there, I am trying to cache 404 responses that have the Cache-Control header set to private by configuring squid to ignore such caching. It seems to work fine for 200 responses, but fails to work on 404 responses.
>
> I adjusted the squid conf the following way:
> refresh_pattern 999999 100% 999999 override-expire ignore-reload
> override-lastmod ignore-no-cache ignore-private ignore-auth
> ignore-stale-while-revalidate.
>
> And then I also tried to remove the Cache-Control Header via the:
> header_access Cache-Control deny all
>
>
> /usr/local/squid/bin/squidclient -p 3128 -h 192.168.75.133 http://www.google.com/idontexist
> HTTP/1.0 404 Not Found
> Content-Type: text/html; charset=ISO-8859-1
> Date: Wed, 07 May 2008 14:47:00 GMT
> Server: gws
> X-Cache: MISS from localhost.localdomain
> Via: 1.0 localhost.localdomain:3128 (squid/2.7.DEVEL0-20080506)
> Connection: close
>
> more access.log
> 1210171620.299 75 192.168.75.133 TCP_MISS/404 7682 GET http://www.google.com/idontexist - DIRECT/72.14.253.104 text/html
> 1210171629.695 63 192.168.75.133 TCP_MISS/404 7682 GET http://www.google.com/idontexist - DIRECT/72.14.253.104 text/html
>
>
> Bug? Configuration mistake?
>
> Christian
>
>
> ____________________________________________________________________________________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

-- 
- Xenion - http://www.xenion.com.au/ - VPS Hosting - Commercial Squid Support -
- $25/pm entry-level VPSes w/ capped bandwidth charges available in WA -
Received on Sun May 18 2008 - 19:50:06 MDT

This archive was generated by hypermail 2.2.0 : Tue Aug 05 2008 - 01:05:13 MDT