Re: Push and Caching

Greg Wilkins <gregw@intalio.com> Tue, 19 August 2014 23:24 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 D1ED31A6FC1 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 19 Aug 2014 16:24:00 -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 YwpybLt2Weyu for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 19 Aug 2014 16:23:56 -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 0D8A21A6FA6 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 19 Aug 2014 16:23:55 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1XJshy-00007e-J6 for ietf-http-wg-dist@listhub.w3.org; Tue, 19 Aug 2014 23:20:54 +0000
Resent-Date: Tue, 19 Aug 2014 23:20:54 +0000
Resent-Message-Id: <E1XJshy-00007e-J6@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 1XJshg-00006r-Pf for ietf-http-wg@listhub.w3.org; Tue, 19 Aug 2014 23:20:36 +0000
Received: from mail-wg0-f51.google.com ([74.125.82.51]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <gregw@intalio.com>) id 1XJshf-00066F-B4 for ietf-http-wg@w3.org; Tue, 19 Aug 2014 23:20:36 +0000
Received: by mail-wg0-f51.google.com with SMTP id b13so7047964wgh.10 for <ietf-http-wg@w3.org>; Tue, 19 Aug 2014 16:20:08 -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:content-type; bh=sDYHVjUpnVFmc/1Kq4rqlzFcibFHI7vqEJyH+7qeFK8=; b=O9RolHCoiowXC8silsD2g8KSds6konLsMsQ3rfch9kteB9IlqcsNvHuMgt7/N5GbMO jxCfUmUNz+bt9Ti4pgvO1I5rvmeWgSOEszdZtkuV37YsyhpazJLIxuEQKUuumOJvuuW9 1f7wqN4SkYfNEJPUQkrElUQun5xE4u2UpAN9z3ZlPgRbJa2FCHRdugB8oCE4U8aPi6Ry dx49dNuegcfRakJlqZfXcFgJoEhllu3P7ItO2E791egwMq5k+x/zFbkuPC3LEC28DxI0 yjVT/aTIZBhhjhjvPUewpjZDHnB+8T8KteP4gXEH9NbWvULxk1YeeampF8o8p0Onv56k lb7w==
X-Gm-Message-State: ALoCoQl6RhwPHbzEaHFalD9MmGYy4EErYlNxQKV2WhFja/yWJtaUnnQUzhz/VaA87FOFa2FnxOWF
MIME-Version: 1.0
X-Received: by 10.180.211.172 with SMTP id nd12mr10230225wic.74.1408490408311; Tue, 19 Aug 2014 16:20:08 -0700 (PDT)
Received: by 10.194.169.98 with HTTP; Tue, 19 Aug 2014 16:20:08 -0700 (PDT)
In-Reply-To: <CABkgnnWvKgyDcm-1jEKZUA2Qza9M46X+X_QybwuqRwvSUrTjNw@mail.gmail.com>
References: <dc3d860ecb4b4d408a5ed0519a036e61@BL2PR03MB132.namprd03.prod.outlook.com> <CABkgnnWvKgyDcm-1jEKZUA2Qza9M46X+X_QybwuqRwvSUrTjNw@mail.gmail.com>
Date: Wed, 20 Aug 2014 09:20:08 +1000
Message-ID: <CAH_y2NFDAtdqkSZU8pukJ+ScJR4jdqkgh__8BeYYeykokmOBKg@mail.gmail.com>
From: Greg Wilkins <gregw@intalio.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="001a11c388ee7518ed050103bac1"
Received-SPF: permerror client-ip=74.125.82.51; envelope-from=gregw@intalio.com; helo=mail-wg0-f51.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 1XJshf-00066F-B4 e8bef9a6f8c2853473ea2fd8750fc8bf
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Push and Caching
Archived-At: <http://www.w3.org/mid/CAH_y2NFDAtdqkSZU8pukJ+ScJR4jdqkgh__8BeYYeykokmOBKg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/26663
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 20 August 2014 03:25, Martin Thomson <martin.thomson@gmail.com> wrote:

> I think that the `Cache-Control: nocache` response is a useful
> feature.  I do remember being careful to permit uncacheable responses,
> knowing that this would be an important use case.
>


+1

With jetty SPDY we were only pushing static resources, but I  think that
static content is often moved off to CDNs anyway, so it is pushing any
dynamically generated associated resources that will be needed to reduce
the RTTs.

With jetty http2 we have re factored so that we can push dynamic resources
including ones that may be transient and marked no-cache. We are working
with application APIs so that details like what session/query
string/parameters to use for the push can be sorted out with knowledge from
the application framework.    Thus a pushed response to a GET /index.html
may include highly customised/personalised data and be different for every
push.



Off topic somewhat:

I want to be able
> to use push to trivially replace long-polling and this would help with
> that.
>

I can see that as being very useful for non-browser clients.      It would
be great if it could also be done in browser... but is there any suggestion
that a js API will be made available so that javascript frameworks can be
notified of the arrival of pushed resources?

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.