Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 72165 invoked from network); 1 Dec 2008 10:35:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Dec 2008 10:35:01 -0000 Received: (qmail 10833 invoked by uid 500); 1 Dec 2008 10:35:01 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 10431 invoked by uid 500); 1 Dec 2008 10:35:00 -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 10418 invoked by uid 99); 1 Dec 2008 10:35:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2008 02:35:00 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [217.52.206.55] (HELO Mail3.itworx.com) (217.52.206.55) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2008 10:33:27 +0000 Received: from FRZNEXCH-01.itworx.com ([10.0.0.60]) by FRZNEXCH-01.itworx.com ([10.0.0.60]) with mapi; Mon, 1 Dec 2008 12:33:52 +0200 From: Karim Zaki To: "users@httpd.apache.org" Date: Mon, 1 Dec 2008 12:33:51 +0200 Thread-Topic: [users@httpd] Clearing cache selectively on Apache + mod_cache Thread-Index: AclTSoWdSnFP687qQY+v+2HEhrU/VwAVWtjg Message-ID: <0C137067804891498EAC524A079E1205691403D955@FRZNEXCH-01.itworx.com> References: <0C137067804891498EAC524A079E1205691403D826@FRZNEXCH-01.itworx.com> <1404e5910811301619w391052e6o4c57ccb453b710a2@mail.gmail.com> In-Reply-To: <1404e5910811301619w391052e6o4c57ccb453b710a2@mail.gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] Clearing cache selectively on Apache + mod_cache That sounds like a possible way to go. However, this spills into another qu= estion. I have the CacheIgnoreCacheControl directive set to "On" for mod_ca= che. I know that this means "no-cache" is ignored in the request. Does it a= lso ignore "max-age", or can I force the cache to clear by using "max-age" = even if CacheIgnoreCacheControl is on? Thanks, -----Original Message----- From: Eric Covener [mailto:covener@gmail.com] Sent: Monday, December 01, 2008 2:19 AM To: users@httpd.apache.org Subject: Re: [users@httpd] Clearing cache selectively on Apache + mod_cache On Sun, Nov 30, 2008 at 9:59 AM, Karim Zaki wrote: > Greetings all, > > > > I'm running Apache/2.2.10 (Win32) mod_jk/1.2.27 + mod_cache. I'm looking = for > a way to clear the cache from Apache for specific URLs. I'm using Apache = to > cache dynamic content that is served by Tomcat, and I would like to keep = the > content (age) high (e.g. 24 hours) but still to be able to clear the cach= e > for specific pages when the content is updated. Is there a way to tell > Apache to clear the cache for a specific list of URLs? > Try these combinations of headers, comment from cache_util.c: /* * We now want to check if our cached data is still fresh. This depends * on a few things, in this order: * * - RFC2616 14.9.4 End to end reload, Cache-Control: no-cache. no-cach= e in * either the request or the cached response means that we must * revalidate the request unconditionally, overriding any expiration * mechanism. It's equivalent to max-age=3D0,must-revalidate. * -- Eric Covener covener@gmail.com --------------------------------------------------------------------- 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