[squid-users] Re: TCP_REFRESH_HIT unwanted

From: RW <fbsd06@dont-contact.us>
Date: Fri, 26 Oct 2007 16:17:12 +0100

On Fri, 26 Oct 2007 14:26:12 +0200
"Michael Jurisch" <archer@gmx.org> wrote:

> Hi there,
>
> I found some small hints that hopefully will lead to solve my problem
> (http://www.squid-cache.org/mail-archive/squid-users/200710/0260.html).
>
> To make it short: in the squid access.log I mostly see
> TCP_REFRESH_HIT/304, but I want them to be TCP_IMS_HIT. If I see it
> right, TCP_REFRESH_HIT/304 means, that the object in cache is not
> considerd as fresh, that's why there goes a request to the origin
> server, which tells squid, that the object wasn't modified. But I
> don't know, why the cache thinks, the objects I test with (2 simple
> html files and one jpg) are stale!? I installed mod_expire for apache
> and I configured it in a way that the objects should be fresh for 5
> minutes.

Try using a tool that will show you the http headers from the origin
server e.g. wget -S

> To make it clear: I don't hit reload all the time, I just
> click links that connect the two html files, so I only jump from file
> 1 to file 2 and back. In my opinion this has to be TCP_IMS_HIT. So
> what factors influence this? What can I do to get TCP_IMS_HIT instead
> of TCP_REFRESH_HIT?
Received on Fri Oct 26 2007 - 09:17:31 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Nov 01 2007 - 13:00:02 MDT