Search squid archive

Re: Squid is caching the 404 Error Msg...

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

 



This is what you're looking for:

#  TAG: negative_ttl    time-units
#       Time-to-Live (TTL) for failed requests.  Certain types of
#       failures (such as "connection refused" and "404 Not Found") are
#       negatively-cached for a configurable amount of time.  The
#       default is 5 minutes.  Note that this is different from
#       negative caching of DNS lookups.
#
#Default:
# negative_ttl 5 minutes

Just set it to 0 and it won't cache 404's


2010/11/8 karj <gkaragiannidis@xxxxxxxxx>:
> 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
>
>
> I don't want to cache  Error Msgs.
> Error Msgs should never be cached.
> How can I do that.?
>
>
> thanks in advance
>



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

  Powered by Linux