[squid-users] Question about refresh_pattern and TCP_MEM_HIT

From: Silamael <Silamael_at_coronamundi.de>
Date: Tue, 18 Sep 2012 17:01:54 +0200

Hello,

I have a simple question about refresh_pattern and TCP_MEM_HIT.
Given the following configuration:

refresh_pattern foo.example.org 0 0% 0
refresh_pattern . 0 20% 14400

Now, if i fetch something from foo.example.org i get a
TCP_CLIENT_REFRESH_MISS/200
The following request for the same url is shown in the squid.log with
TCP_MEM_HIT/200.
If i understand this correctly the TCP_MEM_HIT means that squid did not
reload the requested url but served the request with the object still in
memory, isn't it?
If so, I'm wondering why this url is kept in the memory cache. The
refresh_pattern above should prevent this case and force squid to reload
the asked object every time.

So, what's the explanation for this behaviour?

Thanks in advance!

-- Matthias
Received on Tue Sep 18 2012 - 15:01:58 MDT

This archive was generated by hypermail 2.2.0 : Wed Sep 19 2012 - 12:00:04 MDT