Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 68443 invoked from network); 9 Nov 2005 23:18:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Nov 2005 23:18:17 -0000 Received: (qmail 98932 invoked by uid 500); 9 Nov 2005 23:12:26 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 98919 invoked by uid 500); 9 Nov 2005 23:12:26 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 98906 invoked by uid 99); 9 Nov 2005 23:12:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2005 15:12:25 -0800 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [68.142.199.129] (HELO web81401.mail.mud.yahoo.com) (68.142.199.129) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 09 Nov 2005 15:12:13 -0800 Received: (qmail 75831 invoked by uid 60001); 9 Nov 2005 23:11:57 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=R1DO2dWpZFJQnOGHUILcJnLj6r4u2ZsO9S/gl4HGwwXmAX4V4GNeSae7YGyJBZbTqV6Z1T/E2eLG2et64IuptNLFF6VxAVJZwTUhJEUAvEfajdfPgIq/C3bUF3BU3b7HHtlcQ9xAknej6SmAQIvaZq7J5FNWhTuG9mp34cmW4pA= ; Message-ID: <20051109231157.75829.qmail@web81401.mail.mud.yahoo.com> Received: from [68.93.211.5] by web81401.mail.mud.yahoo.com via HTTP; Wed, 09 Nov 2005 15:11:57 PST Date: Wed, 9 Nov 2005 15:11:57 -0800 (PST) From: "Matthew R. Hamilton" To: users@httpd.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Question about mod_cache X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Josh, I enabled LogLevel debug and below is the output from the error log: ----------------------------------------------------- [Wed Nov 09 16:27:48 2005] [debug] /home/gatekeeper/minfrin/rpm/BUILD/httpd-2.0.50/server/mpm/prefork/prefork.c(955): AcceptMutex: sysvsem (default: sysvsem) [Wed Nov 09 16:27:59 2005] [debug] /home/gatekeeper/minfrin/rpm/BUILD/httpd-2.0.50/modules/experimental/mod_cache.c(157): cache: no cache - add cache_in filter and DECLINE [Wed Nov 09 16:27:59 2005] [debug] /home/gatekeeper/minfrin/rpm/BUILD/httpd-2.0.50/modules/experimental/mod_cache.c(406): cache: running CACHE_IN filter [Wed Nov 09 16:27:59 2005] [debug] /home/gatekeeper/minfrin/rpm/BUILD/httpd-2.0.50/modules/experimental/mod_cache.c(663): cache: Caching url: /images/corp04/about_may.gif [Wed Nov 09 16:27:59 2005] [debug] /home/gatekeeper/minfrin/rpm/BUILD/httpd-2.0.50/modules/experimental/mod_cache.c(705): cache: Added date header [Wed Nov 09 16:27:59 2005] [info] mem_cache: Cached url: www.mayco.com/images/corp04/about_may.gif? [Wed Nov 09 16:27:59 2005] [debug] /home/gatekeeper/minfrin/rpm/BUILD/httpd-2.0.50/modules/experimental/mod_cache.c(157): cache: no cache - add cache_in filter and DECLINE [Wed Nov 09 16:28:00 2005] [debug] /home/gatekeeper/minfrin/rpm/BUILD/httpd-2.0.50/modules/experimental/mod_cache.c(157): cache: no cache - add cache_in filter and DECLINE [Wed Nov 09 16:28:00 2005] [debug] /home/gatekeeper/minfrin/rpm/BUILD/httpd-2.0.50/modules/experimental/mod_cache.c(406): cache: running CACHE_IN filter [Wed Nov 09 16:28:00 2005] [debug] /home/gatekeeper/minfrin/rpm/BUILD/httpd-2.0.50/modules/experimental/mod_cache.c(663): cache: Caching url: /images/corp04/home_division_links.gif [Wed Nov 09 16:28:00 2005] [debug] /home/gatekeeper/minfrin/rpm/BUILD/httpd-2.0.50/modules/experimental/mod_cache.c(705): cache: Added date header [Wed Nov 09 16:28:00 2005] [info] mem_cache: Cached url: www.mayco.com/images/corp04/home_division_links.gif? And when the browser requests the images again. I assume since I see age values in the reply that these messages are just part of the debug information. ----------------------------------------------------- [Wed Nov 09 16:29:15 2005] [debug] /home/gatekeeper/minfrin/rpm/BUILD/httpd-2.0.50/modules/experimental/mod_cache.c(157): cache: no cache - add cache_in filter and DECLINE [Wed Nov 09 16:29:16 2005] [debug] /home/gatekeeper/minfrin/rpm/BUILD/httpd-2.0.50/modules/experimental/mod_cache.c(157): cache: no cache - add cache_in filter and DECLINE [Wed Nov 09 16:29:16 2005] [debug] /home/gatekeeper/minfrin/rpm/BUILD/httpd-2.0.50/modules/experimental/mod_cache.c(157): cache: no cache - add cache_in filter and DECLINE [Wed Nov 09 16:29:17 2005] [debug] /home/gatekeeper/minfrin/rpm/BUILD/httpd-2.0.50/modules/experimental/mod_cache.c(157): cache: no cache - add cache_in filter and DECLINE [Wed Nov 09 16:29:17 2005] [debug] /home/gatekeeper/minfrin/rpm/BUILD/httpd-2.0.50/modules/experimental/mod_cache.c(157): cache: no cache - add cache_in filter and DECLINE [Wed Nov 09 16:29:18 2005] [debug] /home/gatekeeper/minfrin/rpm/BUILD/httpd-2.0.50/modules/experimental/mod_cache.c(157): cache: no cache - add cache_in filter and DECLINE [Wed Nov 09 16:29:18 2005] [debug] /home/gatekeeper/minfrin/rpm/BUILD/httpd-2.0.50/modules/experimental/mod_cache.c(157): cache: no cache - add cache_in filter and DECLINE [Wed Nov 09 16:29:18 2005] [debug] /home/gatekeeper/minfrin/rpm/BUILD/httpd-2.0.50/modules/experimental/mod_cache.c(157): cache: no cache - add cache_in filter and DECLINE [Wed Nov 09 16:29:18 2005] [debug] /home/gatekeeper/minfrin/rpm/BUILD/httpd-2.0.50/modules/experimental/mod_cache.c(157): cache: no cache - add cache_in filter and DECLINE [Wed Nov 09 16:29:18 2005] [debug] /home/gatekeeper/minfrin/rpm/BUILD/httpd-2.0.50/modules/experimental/mod_cache.c(157): cache: no cache - add cache_in filter and DECLINE ----------------------------------------------------- >From the access log. The value for %{Age}o is in between "--> <--". Is this value age of the item in the cache? Also some of the Age values are "_". Does this mean that they aren't being cached? ----------------------------------------------------- --> 42 <--- 10.1.192.213 www.mayco.com - [09/Nov/2005:16:32:49 -0600] "GET /images/corp04/about_may_over.gif HTTP/1.1" 304 - "http://www.mayco.com/common/index.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)""xportala=68.93.211.5.1106951324602418; mdsc=68.93.211.5.1107210091138408; may=10.0.64.53.1109366232194316; mayco=10.1.192.213.1130532590511892" --> 42 <--- 10.1.192.213 www.mayco.com - [09/Nov/2005:16:32:49 -0600] "GET /images/corp04/about_may.gif HTTP/1.1" 304 - "http://www.mayco.com/common/index.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)""xportala=68.93.211.5.1106951324602418; mdsc=68.93.211.5.1107210091138408; may=10.0.64.53.1109366232194316; mayco=10.1.192.213.1130532590511892" --> 42 <--- 10.1.192.213 www.mayco.com - [09/Nov/2005:16:32:50 -0600] "GET /images/corp04/about_may_over.gif HTTP/1.1" 304 - "http://www.mayco.com/common/index.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)""xportala=68.93.211.5.1106951324602418; mdsc=68.93.211.5.1107210091138408; may=10.0.64.53.1109366232194316; mayco=10.1.192.213.1130532590511892" --> 43 <--- 10.1.192.213 www.mayco.com - [09/Nov/2005:16:32:50 -0600] "GET /images/corp04/about_may.gif HTTP/1.1" 304 - "http://www.mayco.com/common/index.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)""xportala=68.93.211.5.1106951324602418; mdsc=68.93.211.5.1107210091138408; may=10.0.64.53.1109366232194316; mayco=10.1.192.213.1130532590511892" --> - <--- 10.1.192.213 www.mayco.com - [09/Nov/2005:17:10:28 -0600] "GET /images/corp04/about_may_over.gif HTTP/1.1" 304 - "http://www.mayco.com/common/index.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)""xportala=68.93.211.5.1106951324602418; mdsc=68.93.211.5.1107210091138408; may=10.0.64.53.1109366232194316; mayco=10.1.192.213.1130532590511892" --> 2301 <--- 10.1.192.213 www.mayco.com - [09/Nov/2005:17:10:29 -0600] "GET /images/corp04/about_may.gif HTTP/1.1" 304 - "http://www.mayco.com/common/index.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)""xportala=68.93.211.5.1106951324602418; mdsc=68.93.211.5.1107210091138408; may=10.0.64.53.1109366232194316; mayco=10.1.192.213.1130532590511892" --> - <--- 10.1.192.213 www.mayco.com - [09/Nov/2005:17:10:29 -0600] "GET /images/corp04/about_may_over.gif HTTP/1.1" 304 - "http://www.mayco.com/common/index.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)""xportala=68.93.211.5.1106951324602418; mdsc=68.93.211.5.1107210091138408; may=10.0.64.53.1109366232194316; mayco=10.1.192.213.1130532590511892" --> 2302 <--- 10.1.192.213 www.mayco.com - [09/Nov/2005:17:10:29 -0600] "GET /images/corp04/about_may.gif HTTP/1.1" 304 - "http://www.mayco.com/common/index.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)""xportala=68.93.211.5.1106951324602418; mdsc=68.93.211.5.1107210091138408; may=10.0.64.53.1109366232194316; mayco=10.1.192.213.1130532590511892" ----------------------------------------------------- Thanks once again for your help. Matthew --- Joshua Slive wrote: > On 11/9/05, Matthew R. Hamilton wrote: > > > Is there anything out there that will help me verify cache hits and misses? > > I thought I answered that: > > > > Change LogLevel to debug and look in the error log to determine if > > > mod_cache is active. (You can also log the "Age" HTTP Response header > > > in the access log to see what responses are cached). > > When I use mod_cache, I add %{Age}o to my logformat. Any request with > the Age header has been served from the cache. > > Joshua. > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org