Search squid archive

Cache-Control: header overwrite doesnt seem to work (squid 2.7)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux