Return-Path: X-Original-To: apmail-perl-modperl-archive@www.apache.org Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D27ACD749 for ; Wed, 14 Nov 2012 14:32:11 +0000 (UTC) Received: (qmail 86986 invoked by uid 500); 14 Nov 2012 14:32:10 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 86946 invoked by uid 500); 14 Nov 2012 14:32:10 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 86915 invoked by uid 99); 14 Nov 2012 14:32:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Nov 2012 14:32:08 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of torsten.foertsch@gmx.net designates 213.165.64.22 as permitted sender) Received: from [213.165.64.22] (HELO mailout-de.gmx.net) (213.165.64.22) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 14 Nov 2012 14:32:00 +0000 Received: (qmail invoked by alias); 14 Nov 2012 14:31:38 -0000 Received: from p4FD6E70A.dip.t-dialin.net (EHLO opi.home) [79.214.231.10] by mail.gmx.net (mp038) with SMTP; 14 Nov 2012 15:31:38 +0100 X-Authenticated: #1700068 X-Provags-ID: V01U2FsdGVkX1+ob8MRMZuof5cayZ1xSCRr8KPkSVIsEQgneFf+z7 fY3xf8qjb51cev Message-ID: <50A3AB44.9050107@gmx.net> Date: Wed, 14 Nov 2012 15:31:32 +0100 From: =?UTF-8?B?VG9yc3RlbiBGw7ZydHNjaA==?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: mod_perl list CC: =?UTF-8?B?QW5kcsOpIFdhcm5pZXI=?= Subject: Re: question on sub-requests References: <50A12FBB.2070607@ice-sa.com> <50A23900.4060202@gmx.net> <50A28ECD.7010103@ice-sa.com> <50A3886A.7010601@gmx.net> <50A3A129.209@ice-sa.com> In-Reply-To: <50A3A129.209@ice-sa.com> X-Enigmail-Version: 1.4.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org On 11/14/2012 02:48 PM, André Warnier wrote: > I my particular case, the sendfile() solution above works fine, because > I am sure in this case that no additional processing needs to take place > on those static pages. What I meant in particular was the HTTP code 304 generation. With your solution the browser will always get a fresh copy even if the cache is still valid. > About returning DECLINED in a ResponseHandler : that works fine, and > apparently has the effect of Apache serving the resource using it's > default handler (or, I suppose, any other alternative response handler > that may be chained). This is consistent with the fact that a response > handler is of type > > quote > RUN_FIRST That's why I thought returning DECLINED should work. If you want to switch to dedicated handler other than the default one I think you can set it via $r->handler(newhandler). But in this case you have to hope that the new handler is further down the handler chain. Modperl registers its 2 response handlers with APR_HOOK_MIDDLE. So, it may depend on the LoadModule order whether the modperl handler comes first or newhandler. Torsten