On Mon, 08 Nov 2010 16:15:24 +0200, karj <gkaragiannidis@xxxxxxxxx> wrote: > Dear Expert, > > I'm using: > - Squid Cache: Version Squid Cache: Version 2.7.STABLE9 > > My Problem is. > > When i'm using > Cache-Control headers in the origin iis ( post-check=3600, > pre-check=43200 ) > > Squid is caching the 404 Error Msg. > > In the first two or thre requests i have > TCP_MISS:FIRST_UP_PARENT ---> squid goes back to origin server > > After while i'm getting > 404 926 TCP_NEGATIVE_HIT:NONE ---> squid servers 404 from it's cache > Check that you have "negative_ttl 0 seconds" configured. 2.x has a wrong default of some minutes. > > I don't want to cache Error Msgs. > Error Msgs should never be cached. > How can I do that.? If the above setting is correctly at 0 seconds already, check the web server provided headers. 4xx messages CAN be cached in a lot of cases, but it should be up to the origin site to specify correctly when. Amos