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 <[EMAIL PROTECTED]> wrote:
On 2/12/07, Dziugas Baltrunas <[EMAIL PROTECTED]> 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
