Re: [squid-users] squid and php-sites

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 15 Feb 2003 18:37:51 +0100

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
Received on Sat Feb 15 2003 - 13:57:51 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:13:24 MST