Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8D7456EEC for ; Wed, 13 Jul 2011 19:40:38 +0000 (UTC) Received: (qmail 40644 invoked by uid 500); 13 Jul 2011 19:40:35 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 40510 invoked by uid 500); 13 Jul 2011 19:40:34 -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 40493 invoked by uid 99); 13 Jul 2011 19:40:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jul 2011 19:40:34 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tw@dionic.net designates 81.2.78.41 as permitted sender) Received: from [81.2.78.41] (HELO rodan.dionic.net) (81.2.78.41) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jul 2011 19:40:27 +0000 Received: from squidward.wifi.dionic.net ([10.0.1.55]) by rodan.dionic.net with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1Qh5Hy-0004oe-GI for users@httpd.apache.org; Wed, 13 Jul 2011 20:40:06 +0100 Message-ID: <4E1DF496.4010607@dionic.net> Date: Wed, 13 Jul 2011 20:40:06 +0100 From: Tim Watts User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Thunderbird/3.1.10 MIME-Version: 1.0 To: users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Dionic-Trusted: authuser X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] mod_proxy, mod_cache and set header Hi all, Quick pointer would be most welcomed: I have mod_proxy_http in use to front-end a tomcat server. Sadly the tomcat programmers omitted to set cache control headers (eg Expires) and the tomcat servers are being overloaded, despite the content being totally invariant. I don't "do" JSP so messing about at that end is out for me. So I'd like to shove a cache in front - and an agressive one at that, that handled GET requests too. I normally use mod_cache_disk for this with good effect but the lack of Expires (etc) headers are falling foul. I have considered an output filter to force the headers in as mod_headers does not seem to play nice with mod_proxy. Is it at all likely that I could get mod_ext_filter (IIRC), mod_cache and mod_proxy to play nice? Next option is to hack mod_proxy (there was a 1.3 patch that allowed manipulating output headers) - would that play nice with mod_cache? I do have Squid as a fallback - or I suppose a separate Apache instance - but it's getting a bit hairy and overweight. A light solution would be good - I have a 100+ servers I could usefully apply this too :) Any suggestions would be cool - I'm happy to graft, but as long as I start in the right direction :) Many thanks, Tim -- Tim Watts Personal Blog: http://www.dionic.net/tim/ --------------------------------------------------------------------- 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