httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dziugas Baltrunas" <dziu...@gmail.com>
Subject Re: mod_cache: MISS or HIT
Date Tue, 13 Feb 2007 11:25:37 GMT
Hi,

I was looking for something more reliable so I now realize it will
require patching of mod_cache.c by adding some flag (i.e. setting some
key r->notes, registering mod_log_config modifier via log_pfn_register
or similar).

On 2/12/07, Joshua Slive <joshua@slive.ca> wrote:
> On 2/12/07, Dziugas Baltrunas <dziugas@gmail.com> 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.
>
> Joshua.
>


-- 
Dziugas

Mime
View raw message