If I comment out all the 3 lines for refresh_pattern in squid.conf like
below, would squid behave with builtin defaults (min=0, percent=20%,
max=4320) you mentioned in this email thread below if it doesn't recive
expilcit caching headers??

In other words what should I do if I don't want refresh_pattern at all ?
Should I just say
refresh_pattern . 0 0% 0 

or should it work for the below setting?? 

#       to change one. The default setting is only active if none is
#       used.
#
#Suggested default:
#refresh_pattern ^ftp:           1440    20%     10080
#refresh_pattern ^gopher:        1440    0%      1440
#refresh_pattern .               0       20%     4320

Awaiting for your (as usual speedy:-) ) response as we are seeing a random
behavior where the object is cached for some interval of time even though we
didn't have any expilicit headers to cache it in our production system..

Thanks
Neeli

-----Original Message-----
From: Henrik Nordstrom [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 15, 2003 9:38 AM
To: alp
Cc: [EMAIL PROTECTED]
Subject: Re: [squid-users] squid and php-sites


alp wrote:
> 
> thx again, henrik.
> it is becoming clear to me (wish i had your knowledge!).

If you spend as much time with Squid as I have you probably will, if not
more..

> it is maybe only of philosophical interest: i am wondering if such a
request
> for test.php would be cached initially. i mean, if a client requests it
the
> very first time, then refresh_pattern is not used, since it is simply the
> first time. so, unless squid knows to not cache it due to missing
appropiate
> headers, it may be cached (or not???).

Again, it depends on your refresh_pattern settings.

Only if Squid sees that the response will be considered fresh for more
than 60 seconds, or if it has revalidation headers allowing revalidation
(mainly Last-Modified) will it get cached.

So refresh_pattern is used both to determine if the response should be
cached and to determine if a later request can be satisfied from the
prior cached entry.

> if i have explicit entries for refresh_patterns, but no default rule and
one
> object misses my rules. will it then be regarded as fresh or stale?

If there is no matching refresh_pattern then the builtin defaults are
used (min=0, percent=20%, max=4320)

Regards
Henrik

Reply via email to