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.