Re: [#153] PUSH_PROMISE headers

Jeff Pinner <jpinner@twitter.com> Sat, 29 June 2013 18:56 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6A46621F9FFD for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 29 Jun 2013 11:56:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.976
X-Spam-Level:
X-Spam-Status: No, score=-9.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i70yz4GMrFcL for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 29 Jun 2013 11:56:26 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 036D821F9FF8 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat, 29 Jun 2013 11:56:25 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Ut0IP-0006QC-Db for ietf-http-wg-dist@listhub.w3.org; Sat, 29 Jun 2013 18:54:53 +0000
Resent-Date: Sat, 29 Jun 2013 18:54:53 +0000
Resent-Message-Id: <E1Ut0IP-0006QC-Db@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <jpinner@twitter.com>) id 1Ut0I3-0006PG-JS for ietf-http-wg@listhub.w3.org; Sat, 29 Jun 2013 18:54:31 +0000
Received: from mail-ob0-f173.google.com ([209.85.214.173]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <jpinner@twitter.com>) id 1Ut0I2-0006ZC-QZ for ietf-http-wg@w3.org; Sat, 29 Jun 2013 18:54:31 +0000
Received: by mail-ob0-f173.google.com with SMTP id wc20so2993577obb.18 for <ietf-http-wg@w3.org>; Sat, 29 Jun 2013 11:54:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=twitter.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=WP4/x0C8vVVNrJqbzap/cbt3ruYgqYT8/087qE4MQpU=; b=VSmreuh8LoiCC2hA0QpYL4CqpJuXoGbVsBTgFdRCerUD0kZFhYOLbWhrTukD3gfJ3a QQSAL9w34wPaGDy0r6eodvzlsHYsfwDVLvBDpWyg4tmlvocCzTNI6nGKVuzFwo8sTdzp pzyi2BgpERN/VKsnv5JPOgiwh6DRAtFCyW2/Y=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=WP4/x0C8vVVNrJqbzap/cbt3ruYgqYT8/087qE4MQpU=; b=miiZg14GGESAFNHMHLqMvmk/XTqkUJNrU7s/FIGAc2gHO/vw6XyH7vdX2VYaKus6Sn exl/TvRQNYbQNn/k/NM4evgTr1f50QH7ML1mlbM5/boHI7QLkwJjKVsN+VzNe8bdQYP1 nqarF5hpdqGMbUsnNZ0fZvdPAdZfx90eSU+H8sJqM0UVJuhDD/0OIYeO/xnEwpLp6f+y zRXPg4ZM0EA0ltsb8fUxgr1WAKN3Rj1+ctDBw0j5XkoCgbyfcvXicVtlISYHZwDrp3Qx OFY47dd8Jmlm3uc9OkxZen56j6QuaaWU8pet979DHToaMVT5vPlXOtncL8ImiF/1fzP4 ai/Q==
MIME-Version: 1.0
X-Received: by 10.60.41.161 with SMTP id g1mr7308670oel.41.1372532044830; Sat, 29 Jun 2013 11:54:04 -0700 (PDT)
Received: by 10.182.7.37 with HTTP; Sat, 29 Jun 2013 11:54:04 -0700 (PDT)
In-Reply-To: <CABP7Rbe==JGEr9ro9hUoW7HQCA6a+acryzic1HswftbSgvFy9Q@mail.gmail.com>
References: <CABkgnnVGh9dLkfDrO2fq5TsnxwEu0Dff=LqJEJR5Odq2ibfDMg@mail.gmail.com> <CABP7RbcoSSSKJq3YbZ2ypw-xb0uOgFQcjcQP9tJdkgEjPfJVMA@mail.gmail.com> <CAP+FsNdJcZ_x6RidaVfP+VPtA3CwAbALgAqhOhAjZLzaz4tQRQ@mail.gmail.com> <CABP7Rbf_pGKU-yB-f=6fB5WoVvs087eOf6Beo4DDHGJWYX5XTQ@mail.gmail.com> <CAP+FsNd9BDHBO2YXEfHwvRuiJDDpbAEvCMR2BKLzcoaARxjDJA@mail.gmail.com> <CAP+FsNcEf6s5s7Jk=NLKdrdU8fV1AsSJ4u-8CZNT8P7YXvxkag@mail.gmail.com> <CABP7RbdoBswznxwDm+-00egSHV+h7fO7Ow+aw+mFhLm2Z=GRWg@mail.gmail.com> <51CE9415.6020900@treenet.co.nz> <CABP7Rbe==JGEr9ro9hUoW7HQCA6a+acryzic1HswftbSgvFy9Q@mail.gmail.com>
Date: Sat, 29 Jun 2013 11:54:04 -0700
Message-ID: <CA+pLO_gOHTJ2NTqLYLiJTkf8994nrR_8vQG8Fb2M8jPmX-xoEQ@mail.gmail.com>
From: Jeff Pinner <jpinner@twitter.com>
To: James M Snell <jasnell@gmail.com>
Cc: Amos Jeffries <squid3@treenet.co.nz>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="089e0149c1e4f9aaf904e04f8499"
X-Gm-Message-State: ALoCoQkwJpEmnnOxdkBOdb9/JcGArrGGTCADie3motLNxSPI8/WMmCF2BxQwiu5qC22rlT4cggWf
Received-SPF: pass client-ip=209.85.214.173; envelope-from=jpinner@twitter.com; helo=mail-ob0-f173.google.com
X-W3C-Hub-Spam-Status: No, score=-3.9
X-W3C-Hub-Spam-Report: AWL=-3.100, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Ut0I2-0006ZC-QZ 6023527fe013a8217d00e332badf71e6
X-Original-To: ietf-http-wg@w3.org
Subject: Re: [#153] PUSH_PROMISE headers
Archived-At: <http://www.w3.org/mid/CA+pLO_gOHTJ2NTqLYLiJTkf8994nrR_8vQG8Fb2M8jPmX-xoEQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18418
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

+1

At least for the first implementation draft I would suggest we heed James'
suggestion and restrict the headers inside the pushed header block to those
that would have been sent in the request.

If we find later that we *really really* need to add response headers to
the pushed header block then we can reevaluate. Or perhaps after some
implementation experience we figure out that with some thought into
selection of the pushed headers there is not a compelling enough reason to
add the extra complexity.


On Sat, Jun 29, 2013 at 7:27 AM, James M Snell <jasnell@gmail.com> wrote:

>
> On Jun 29, 2013 1:03 AM, "Amos Jeffries" <squid3@treenet.co.nz> wrote:
> >
> [ snip ]
>
> >
> > The above example is a good one.
> >
> > The cache will store the pushed response under:
> >   hash(URL)+hash(Vary:"image/jpeg")
> >
> > When looking up future HIT the cache for this client on explicit-GET it
> will look up
> >   hash(URL)+hash(Vary:"text/html, image/jpeg, image/gif")
> >
> > I assume you can spot the difference.
> >
>
> I didn't miss that. Pushed resources and content negotiation used together
> have rather, um, "interesting" complications. However, those don't change
> the request headers in the push promise and response headers in the HEADERS
> question which is what I was addressing.
>
> - James
>