Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 4647 invoked from network); 12 Jan 2006 14:13:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Jan 2006 14:13:36 -0000 Received: (qmail 36460 invoked by uid 500); 12 Jan 2006 14:13:24 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 36441 invoked by uid 500); 12 Jan 2006 14:13:23 -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 36430 invoked by uid 99); 12 Jan 2006 14:13:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2006 06:13:23 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [193.56.241.17] (HELO orsa.atos-infogerance.fr) (193.56.241.17) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2006 06:13:21 -0800 Received: from minotaure.atos-infogerance.fr ([193.56.47.17]) by orsa.atos-infogerance.fr (8.12.8/8.12.8) with ESMTP id k0CECwKI012966 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 12 Jan 2006 15:12:58 +0100 Received: from exchange2k301.gaia.fr (localhost.localdomain [127.0.0.1]) by minotaure.atos-infogerance.fr (8.12.8/8.12.8) with ESMTP id k0CECss8017588 for ; Thu, 12 Jan 2006 15:12:54 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Thu, 12 Jan 2006 15:12:56 +0100 Message-ID: <8C29B2F93BAE9047A906EF6D6F9C5D43012F97FD@exchange2k301.gaia.fr> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] Apache reverse and caching proxy Thread-Index: AcYXgNNbXwp2EaW1R22z7h32nGLIPQAAJmfw From: =?iso-8859-1?Q?Axel-St=E9phane__SMORGRAV?= To: X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] Apache reverse and caching proxy X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N The mod_expires that you activate with "ExpiresActive On" will add an = Expires header to the responses sent to the client. It does nothing for = Apache cache expiration. It does however have an effect on the = expiration of downstream caches, in your case probably on the User Agent = cache. For cache expiration you should use the CacheDefaultExpire directive. I = believe mod_cache will make a conditional request for the resource when = the cache entry gets stale.=20 If you set CacheDefaultExpires to a low value, mod_cache will frequently = try to refresh the cache.=20 CacheDefaultExpires affects only responses that do not contain an = explicit expiry date. =20 -ascs ________________________________ From: Wim.Van.Leuven@ldc.be [mailto:Wim.Van.Leuven@ldc.be]=20 Sent: Thursday, January 12, 2006 3:02 PM To: users@httpd.apache.org Subject: [users@httpd] Apache reverse and caching proxy Hello all,=20 I'm retrying my configuration for a caching proxy server which flushes = the cache on the modification time of the files. However, It doesn't = seem to work anymore. The files get cached but are not refreshed on a = touch of the file on the source server.=20 Not sure what I changed that it doesn't work anymore. As far as I'm = concerned, I do nothing more then setup an apache server to serve static = files from disk in an ordinary manner. Next I put a proxy server in = front. The configuration of the proxy can be found at the end.=20 When inspecting the debug logs and the http headers, all files get = cached at the proxy. However when I change the modification time of the = files on the source servers, the cache doesn't get updated. Thus still = serving the old version of the file.=20 As a matter a fact, once a file is cached, the source server is never = accessed anymore to verify the correctness of the cache against the = remote instances.=20 Does anybody have a clue about which sublety I'm missing here?=20 Thanks beforehand!=20 Wim Van Leuven=20 ________________________________=20 ...=20 ExpiresActive On=20 ExpiresDefault "modification"=20 ...=20 ProxyRequests Off=20 =20 Order deny,allow=20 Allow from all=20 =20 ProxyPass / http://srcsvr.ldc.local/=20 ProxyPassReverse / http://srcsvr.ldc.local/=20 # Cache configuration=20 =20 LoadModule disk_cache_module modules/mod_disk_cache.so=20 =20 CacheRoot "C:/Program Files/Apache Group/Apache2/cache"=20 CacheSize 256=20 CacheEnable disk /=20 CacheDirLevels 5=20 CacheDirLength 3=20 CacheIgnoreCacheControl Off=20 =20 =20 #LoadModule mem_cache_module modules/mod_mem_cache.so=20 =20 CacheEnable mem /=20 MCacheSize 4096=20 MCacheMaxObjectCount 100=20 MCacheMinObjectSize 1=20 MCacheMaxObjectSize 2048=20 =20 =20 --------------------------------------------------------------------- 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