Return-Path: X-Original-To: apmail-trafficserver-users-archive@www.apache.org Delivered-To: apmail-trafficserver-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 B6B1A10114 for ; Sat, 23 Nov 2013 01:15:32 +0000 (UTC) Received: (qmail 96371 invoked by uid 500); 23 Nov 2013 01:15:32 -0000 Delivered-To: apmail-trafficserver-users-archive@trafficserver.apache.org Received: (qmail 96260 invoked by uid 500); 23 Nov 2013 01:15:32 -0000 Mailing-List: contact users-help@trafficserver.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@trafficserver.apache.org Delivered-To: mailing list users@trafficserver.apache.org Received: (qmail 96252 invoked by uid 99); 23 Nov 2013 01:15:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Nov 2013 01:15:32 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chanshukit@gmail.com designates 209.85.212.173 as permitted sender) Received: from [209.85.212.173] (HELO mail-wi0-f173.google.com) (209.85.212.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Nov 2013 01:15:27 +0000 Received: by mail-wi0-f173.google.com with SMTP id hm4so1509320wib.0 for ; Fri, 22 Nov 2013 17:15:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=PA2J6mmCba0m/qzapHzfJBSDqfzWOkEx02NPJphLaQ0=; b=EZzSN7+/RKkzB0cLt8yhiDPMTPtCxdQ6Feu2x5BxBOvpUhPd+BnEZx+6kjVPjtoMEm +3Z52G7jgkrnL99cAxbgJ+K1NahgfyH8XIUt9blgAVDF9W/DBkYuJGNNg/RwvZo0VnZs y8fILvIrabriLK/W3qJKMFZf4U8PccJ+Kf7itcWb/0THuro03e8+9OIp2GqhHgvrKfa2 zqmz96okpsPUzVt0+i2wkIlLTxD24oQd2Ps6zYfy2Ngkvf5U2T9gv3Pq22W++9evcHIr AzENR8v+omyKzZ+tMG73u4Ea6hBOW4GWk5UPyXfT84F45c+YNQFRbHGtJLZShN9BL1NR Q2jg== MIME-Version: 1.0 X-Received: by 10.180.101.197 with SMTP id fi5mr4865692wib.46.1385169306044; Fri, 22 Nov 2013 17:15:06 -0800 (PST) Received: by 10.216.144.73 with HTTP; Fri, 22 Nov 2013 17:15:05 -0800 (PST) In-Reply-To: References: Date: Fri, 22 Nov 2013 17:15:05 -0800 Message-ID: Subject: Re: Adding headers to 304 Responses From: Shu Kit Chan To: "users@trafficserver.apache.org" Content-Type: multipart/alternative; boundary=f46d0444e8d770d0e904ebcddc0c X-Virus-Checked: Checked by ClamAV on apache.org --f46d0444e8d770d0e904ebcddc0c Content-Type: text/plain; charset=ISO-8859-1 Thanks for trying it out. I think header_rewrite plugin cannot help you in this particular case. Kit On Fri, Nov 22, 2013 at 5:06 PM, Mark Moseley wrote: > On Fri, Nov 22, 2013 at 5:00 PM, Shu Kit Chan wrote: > >> After re-reading your message, can you see if the results are any >> different if you use READ_RESPONSE_HDR_HOOK instead of >> SEND_RESPONSE_HDR_HOOK ? >> >> Thanks. >> >> Kit >> >> > With SEND_RESPONSE_HDR_HOOK, I don't get either of the headers set by > headers_rewrite module in a 304 response. > > Nor do I get the header being copied from X-From-Apache. > --f46d0444e8d770d0e904ebcddc0c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks for trying it out. I think header_rewrite plugin ca= nnot help you in this particular case.

Kit


On Fri, Nov 22,= 2013 at 5:06 PM, Mark Moseley <moseleymark@gmail.com> w= rote:
On Fri, Nov 22, 2013 at 5:00 P= M, Shu Kit Chan <chanshukit@gmail.com> wrote:
Aft= er re-reading your message, can you see if the results are any different if= you use READ_RESPONSE_HDR_HOOK instead of SEND_RESPONSE_HDR_HOOK ?

Thanks.

Kit


With SEND_RESPONSE_HDR_HOOK, I don't get either of the headers= set by headers_rewrite module in a 304 response.

Nor do I get the header being copied from X-From-Apache.

--f46d0444e8d770d0e904ebcddc0c--