httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: mod_cache: MISS or HIT
Date Mon, 12 Feb 2007 17:20:35 GMT
On 2/12/07, Dziugas Baltrunas <> wrote:

> I'm trying to figure out the way how to put information in access log
> (via mod_log_config) whether the request was a cache hit or miss
> (similar to what squid does -  TCP_MISS and TCP_HIT). I think this
> information is necessary for any proxy server (or acting like it) and
> it's always wise to know hit/miss ratio.

You can log the Age HTTP response header for this.  If it is present,
you have a cache hit, and if not, a miss.

Of course, this probably wouldn't be reliable if your cache was in
front of another cache.  But it works in most circumstances.


View raw message