Re: Scope of Server Push

Tom Bergan <tombergan@chromium.org> Wed, 24 August 2016 16:33 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@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 E6A9712D513 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 24 Aug 2016 09:33:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.568
X-Spam-Level:
X-Spam-Status: No, score=-7.568 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.548, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=chromium.org
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id POM0oHXKz73N for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 24 Aug 2016 09:33:09 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7A75A12D544 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 24 Aug 2016 09:33:08 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1bcb3O-0002vU-HP for ietf-http-wg-dist@listhub.w3.org; Wed, 24 Aug 2016 16:29:26 +0000
Resent-Date: Wed, 24 Aug 2016 16:29:26 +0000
Resent-Message-Id: <E1bcb3O-0002vU-HP@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <tombergan@chromium.org>) id 1bcb3I-0002tR-Gh for ietf-http-wg@listhub.w3.org; Wed, 24 Aug 2016 16:29:20 +0000
Received: from mail-it0-f54.google.com ([209.85.214.54]) by lisa.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <tombergan@chromium.org>) id 1bcb3F-0004Zt-6H for ietf-http-wg@w3.org; Wed, 24 Aug 2016 16:29:19 +0000
Received: by mail-it0-f54.google.com with SMTP id e63so220005826ith.1 for <ietf-http-wg@w3.org>; Wed, 24 Aug 2016 09:28:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=hMWVyxer9hzlOMlZ7Nqz0S+BkqanAXpgmXCjXH0bKNg=; b=YwgE7ZLlVHGaItpkTZ99d/+3zfqe+hkAJcnXJ7DHhHkJBqUL2X6Cy62VzUnQ3uNx3/ m6h1miND1zxMSR0McKfKak+E2wKKqMu8z0v6dRzIK6T5OMy0JytVlzRMA0bSqUFaI5AO Ri1XuDKzSIl4iFEAJARLTpuKdwafBb8KaPo0g=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=hMWVyxer9hzlOMlZ7Nqz0S+BkqanAXpgmXCjXH0bKNg=; b=i5kEol8NXU+1XkjhpJq9dygXy9UwpVjFmZmdsyPo3EMdh3gwsO3cEp9CQxovLgPMDv PdUSXgaWu9HOLzKv837l6yVsi6MliR3Xz60QBYmM5VuIABjfm2sEHaKy/IJm+WCN8tcA YqEu2s946gCo05Y99bllunQ9yJCgnvHRY+d7yKICALJDcb41ZwlrAhDq8LaiKye8Gwrs QPnK704fe9y0W+4TFQqOgbt0v4nR0xeNvlYK2EzmE+9fxI3AXGQExOgD79UD8sPuxkwG Qj6CTSCC8/b8JWQfp6U5ncdiOY8by8VV7WSiJWdwEB8zNTY/WpoFDDfAQiLFlX7gaOSg gI/A==
X-Gm-Message-State: AEkoous3W1DKCravYasn3Nb7SKj1WqF0CDUWNiUangyV64DFUn0MSZpmKDdWOA6WspfZAlWr
X-Received: by 10.36.225.133 with SMTP id n127mr337875ith.30.1472056131172; Wed, 24 Aug 2016 09:28:51 -0700 (PDT)
Received: from mail-it0-f41.google.com (mail-it0-f41.google.com. [209.85.214.41]) by smtp.gmail.com with ESMTPSA id t35sm3690902ioi.7.2016.08.24.09.28.50 for <ietf-http-wg@w3.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Aug 2016 09:28:50 -0700 (PDT)
Received: by mail-it0-f41.google.com with SMTP id e63so220004885ith.1 for <ietf-http-wg@w3.org>; Wed, 24 Aug 2016 09:28:50 -0700 (PDT)
X-Received: by 10.107.16.77 with SMTP id y74mr4922302ioi.161.1472056130341; Wed, 24 Aug 2016 09:28:50 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.107.48.136 with HTTP; Wed, 24 Aug 2016 09:28:49 -0700 (PDT)
In-Reply-To: <BE505340-EB4A-4294-AA18-2E365021D983@mnot.net>
References: <BE505340-EB4A-4294-AA18-2E365021D983@mnot.net>
From: Tom Bergan <tombergan@chromium.org>
Date: Wed, 24 Aug 2016 09:28:49 -0700
X-Gmail-Original-Message-ID: <CA+3+x5GUo5C-6MWNrEFM9S+4RZYeSzPYZ1S-kxRZ=qARpnrVbQ@mail.gmail.com>
Message-ID: <CA+3+x5GUo5C-6MWNrEFM9S+4RZYeSzPYZ1S-kxRZ=qARpnrVbQ@mail.gmail.com>
To: Mark Nottingham <mnot@mnot.net>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="001a113e811cbd8054053ad3c610"
Received-SPF: pass client-ip=209.85.214.54; envelope-from=tombergan@chromium.org; helo=mail-it0-f54.google.com
X-W3C-Hub-Spam-Status: No, score=-5.5
X-W3C-Hub-Spam-Report: AWL=-0.760, BAYES_00=-1.9, 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, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: lisa.w3.org 1bcb3F-0004Zt-6H f80b5f47ed7b852687d874cb720f3102
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Scope of Server Push
Archived-At: <http://www.w3.org/mid/CA+3+x5GUo5C-6MWNrEFM9S+4RZYeSzPYZ1S-kxRZ=qARpnrVbQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32353
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>

> Currently, browser implementations of Server Push will not inject the
pushed response into the HTTP cache until there is a reference to it from
the stream that the PUSH_PROMISE was sent upon.

Nit: The last part of this sentence is too strong (should be "connection",
not "stream", at least for Chrome).

> Reportedly, Firefox ties the affinity of a push to a "load group",
whereas Edge is using a "navigation handle."

Chrome uses a per-H2-connection cache for pushed responses. There is a very
related discussion going on in this thread:
https://groups.google.com/a/chromium.org/d/msg/net-dev/CCNLknIbzYs/yNmiUaHQAQAJ

On Tue, Aug 23, 2016 at 9:55 PM, Mark Nottingham <mnot@mnot.net> wrote:

> Currently, browser implementations of Server Push will not inject the
> pushed response into the HTTP cache until there is a reference to it from
> the stream that the PUSH_PROMISE was sent upon. Reportedly, Firefox ties
> the affinity of a push to a "load group", whereas Edge is using a
> "navigation handle."
>
> It's not totally clear whether this is:
>  - a completely separate, non-HTTP cache
>  - a modification or addition to the HTTP cache itself
>  - a secondary level of HTTP caching with special usage rules
>  - etc.
>
> AIUI there are also variations about the scope of reuse itself; e.g.,
> whether you can push an HTML page to the browser and have it use that from
> cache  if the user clicks on a link.
>
> Right now, the requirements about HTTP caching and push are written as if
> the HTTP cache itself is fulfilling this role. E.g., RFC7540, Section 8.2
> says:
>
> > Pushed responses are considered successfully validated on the origin
> server (e.g., if the "no-cache" cache response directive is present
> (RFC7234, Section 5.2.2)) while the stream identified by the promised
> stream ID is still open.
>
> Looking through the history, this text was written this way mostly so that
> pushed responses could use the HTTP cache as a kind of rendezvous with
> requests from the page. That may be sensible, but it feels like the
> specification of the relationship of push to the HTTP cache isn't complete
> (and I'll also start a separate thread about other aspects there).
>
> I think there's an opportunity to clarify this, either in terms of HTTP
> caching, or browser behaviour (see <https://github.com/whatwg/
> fetch/issues/354>), or both.
>
> Furthermore, at the Workshop, there was some discussion about whether
> having this kind of "server push cache" as seperate from the HTTP cache was
> necessary; do we have any more data about why implementers feel it's
> necessary to have a reference from the page before insertion into the HTTP
> cache?
>
> Discuss.
>
> Cheers,
>
> --
> Mark Nottingham   https://www.mnot.net/
>
>
>