Re: Push and Caching

Greg Wilkins <gregw@intalio.com> Tue, 26 August 2014 23:16 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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 13D081A00EF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 26 Aug 2014 16:16:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.947
X-Spam-Level:
X-Spam-Status: No, score=-6.947 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.668, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham
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 DOeoUyqp_oGg for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 26 Aug 2014 16:16:52 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E3F631A00EC for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 26 Aug 2014 16:16:51 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1XMPwu-0006I5-UL for ietf-http-wg-dist@listhub.w3.org; Tue, 26 Aug 2014 23:14:48 +0000
Resent-Date: Tue, 26 Aug 2014 23:14:48 +0000
Resent-Message-Id: <E1XMPwu-0006I5-UL@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <gregw@intalio.com>) id 1XMPwe-0006HD-FH for ietf-http-wg@listhub.w3.org; Tue, 26 Aug 2014 23:14:32 +0000
Received: from mail-wg0-f49.google.com ([74.125.82.49]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <gregw@intalio.com>) id 1XMPwc-00016w-RM for ietf-http-wg@w3.org; Tue, 26 Aug 2014 23:14:32 +0000
Received: by mail-wg0-f49.google.com with SMTP id k14so15175022wgh.20 for <ietf-http-wg@w3.org>; Tue, 26 Aug 2014 16:14:03 -0700 (PDT)
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:date :message-id:subject:from:to:cc:content-type; bh=fjQeMH3QI6q0bZ7t20yQKFCreLroJ+KCqltAjOaR3P0=; b=khtHhEX5yrcuH5jJ7lS/U/M2rXW2xc8hBAyw488rSQL40fOLQEaCOqbD1MXnM3oA+I H7lMIgTB9E4lLJ6xPpxEn72VTHz0kcCYJwshMlIPMkXM6ooATs4IfxivHzm0UrkqJuiS hIE1zKAYFRBBXf6an1J9+WA+ivfE+6hrDFXTNWAURuLGwTeQevJ8RHsoR7enp0cKCzJR 6dEZGSnAVxf3Yea7mAWsqjlxqy/Uq9I2daXGMk31d2H1kUR4Z25QhD+2cRBBUqtlUkA7 AGzBElSGEPdvYpZ7w7js/NFh7g72Wp3Ms2y10Xm2KSlpAxF9c7QH6OgbB+2b7Uk+tGrX aDGQ==
X-Gm-Message-State: ALoCoQnbOXRZwfl8QuEwBnx4JZitohz6NUnPmQlxUCwO8oLFKcycsO2DBoDotTnQDptbbjK6Zbh9
MIME-Version: 1.0
X-Received: by 10.180.211.172 with SMTP id nd12mr24271678wic.74.1409094843652; Tue, 26 Aug 2014 16:14:03 -0700 (PDT)
Received: by 10.194.169.98 with HTTP; Tue, 26 Aug 2014 16:14:03 -0700 (PDT)
In-Reply-To: <DE38D1FB-C9E1-441F-BDCE-9258714E0D96@gbiv.com>
References: <dc3d860ecb4b4d408a5ed0519a036e61@BL2PR03MB132.namprd03.prod.outlook.com> <CABkgnnWvKgyDcm-1jEKZUA2Qza9M46X+X_QybwuqRwvSUrTjNw@mail.gmail.com> <B6B89855-237F-44DA-B29C-2A3BB5CE0EED@mnot.net> <920b92b90a3c47ef8d450c903b83af40@DM2PR05MB670.namprd05.prod.outlook.com> <d94a3acceb954583a61b0118381df417@BL2PR03MB132.namprd03.prod.outlook.com> <CAOdDvNpa5WR4LJbsgQaBE3bTSAc+gXfYqCmV+zmUzE5b7+1a9A@mail.gmail.com> <CECA0C1A-E64C-443A-87AF-22BC66286F72@mnot.net> <CABkgnnXVJA3R4qhc__k4j+_LzeS7B24VxfCZwBSfywepEx=tKA@mail.gmail.com> <40d03e3bb1df480e808e64fa29048880@BL2PR03MB132.namprd03.prod.outlook.com> <CABkgnnX-0X+JZfFYhm18b=bLidaq_pqN5s-K0NBS28m-s6+9Kg@mail.gmail.com> <233C8C21-BF80-4E07-9717-56630085E192@mnot.net> <CABkgnnW9Uq5R1KvuTXuT=xUdX_pVWikyAOMp=ixJe+c0NRs4Lg@mail.gmail.com> <CAH_y2NHV_966DSX4yX-=tfDPUkk-obCXFbJnPifQpFb1KFjYDg@mail.gmail.com> <7d2fdc975fec4646b21e86620a834e72@DM2PR05MB670.namprd05.prod.outlook.com> <2C38B85E-7290-4AE3-A886-12A329DE449C@mnot.net> <D92F296B-3E9A-42B3-978C-AC319C072C60@mnot.net> <9C64D35C-49BF-47F7-8D72-EFA2DA546FEA@gbiv.com> <22238EC5-50F4-4611-9FED-39E3D7B67B10@gbiv.com> <CABkgnnWssBqVw+aSb_8y80JBRWkQ8H+MPvmYZ7MyzOkYUQwWTQ@mail.gmail.com> <DE38D1FB-C9E1-441F-BDCE-9258714E0D96@gbiv.com>
Date: Wed, 27 Aug 2014 09:14:03 +1000
Message-ID: <CAH_y2NE5BOxfY8PK1QCqUDai7AMz_yWch83ptxh1Qs0qmrBmBA@mail.gmail.com>
From: Greg Wilkins <gregw@intalio.com>
To: "Roy T. Fielding" <fielding@gbiv.com>
Cc: Martin Thomson <martin.thomson@gmail.com>, Mark Nottingham <mnot@mnot.net>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="001a11c388ee9c617305019075f9"
Received-SPF: permerror client-ip=74.125.82.49; envelope-from=gregw@intalio.com; helo=mail-wg0-f49.google.com
X-W3C-Hub-Spam-Status: No, score=-3.8
X-W3C-Hub-Spam-Report: AWL=-3.100, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7
X-W3C-Scan-Sig: lisa.w3.org 1XMPwc-00016w-RM 6273ac69c6c04ff4605bc66e463a4d11
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Push and Caching
Archived-At: <http://www.w3.org/mid/CAH_y2NE5BOxfY8PK1QCqUDai7AMz_yWch83ptxh1Qs0qmrBmBA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/26752
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>

On 27 August 2014 05:05, Roy T. Fielding <fielding@gbiv.com> wrote:

> > Given the long-lived nature of HTTP/2 connections is this really the
> > right bound on validity?  It's not as though the server is guaranteed
> > an opportunity to replace/invalidate the response.
>
> I would expect them to push another.  Isn't that sufficient?


I'm with Martin on this one.

Resources are pushed in the context of a GET request, not in the context of
a connection.

Their should be no obligation on the server to monitor the status of the
pushed resource beyond the time it is sent, as that could add up to a
significant active burden on the server to look for file changes in pushed
resources, and other resources may not even be possible to now if they have
changed without attempting to regenerate them.

More importantly, once the initial GET has finished, there is no context in
which to either form the 'fake' request to which the server is pushing a
response, nor a stream on which is can be pushed.

I think the effect of pushing a no-cache resource should be as if the
client had just received a response to a request that it made itself during
the processing of the scoping GET.


cheers








-- 
Greg Wilkins <gregw@intalio.com>
http://eclipse.org/jetty HTTP, SPDY, Websocket server and client that scales
http://www.webtide.com  advice and support for jetty and cometd.