Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 1733 invoked from network); 29 Mar 2007 19:12:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Mar 2007 19:12:57 -0000 Received: (qmail 21003 invoked by uid 500); 29 Mar 2007 19:13:02 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 20930 invoked by uid 500); 29 Mar 2007 19:13:02 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 20919 invoked by uid 99); 29 Mar 2007 19:13:02 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2007 12:13:02 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [68.230.240.47] (HELO eastrmmtao105.cox.net) (68.230.240.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2007 12:12:54 -0700 Received: from eastrmimpo02.cox.net ([68.1.16.120]) by eastrmmtao105.cox.net (InterMail vM.7.05.02.00 201-2174-114-20060621) with ESMTP id <20070329191231.KVAI15840.eastrmmtao105.cox.net@eastrmimpo02.cox.net> for ; Thu, 29 Mar 2007 15:12:31 -0400 Received: from [192.168.0.100] ([24.255.120.190]) by eastrmimpo02.cox.net with bizsmtp id gjCX1W00J46aSr40000000; Thu, 29 Mar 2007 15:12:32 -0400 Message-ID: <460C0F99.1040907@reverycodes.com> Date: Thu, 29 Mar 2007 15:12:25 -0400 From: Vadim Gritsenko User-Agent: Thunderbird 1.5.0.10 (Macintosh/20070221) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Make status code attribute of seriailzers expandable References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Ard Schrijvers wrote: >> Ard Schrijvers wrote: >>> I missed the discussion before the vote, but have one more question: >>> >>> Is it also possible to add extra optional http headers in >>> the serializer, like: >>> >> cache-control="{cache}"> >>> I would like to store in a variable wether I am dealing >>> with something that is not allowed to be cached by mod_cache, >>> like a cforms with continuation. We had a discussion before >>> on this list, but cannot find the thread ATM >>> I do not know about the serializers, but is this possible >>> and/or desirable? >> >> Please see HttpHeaderAction, can set any response header you want > > I know. But, it does not work when you set the response header in a subpipeline, > so you *have* to do this in the pipeline which contains the serializer, > but quite normally, I have one main catch all matcher with the xhtml serialzer. I'm sorry, but I can't spot a difference between these two options: and: In both cases, sitemap parameter expansion will happen while sitemap is executed and pipeline is built. In first case you'd presumable set response headers in Serializer.setOutputStream() method, which is happening a bit later comparing with Action.act() of the second case, but still it should be the same effect, isn't it? Vadim