Re: How to stop receiving a pushed resource? (I-D Action: draft-ietf-httpbis-http2-01.txt)

William Chan (陈智昌) <willchan@chromium.org> Tue, 22 January 2013 02:25 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 5138511E809C for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 21 Jan 2013 18:25:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.377
X-Spam-Level:
X-Spam-Status: No, score=-8.377 tagged_above=-999 required=5 tests=[AWL=1.299, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Talb2odFWEaS for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 21 Jan 2013 18:25:50 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 4889111E809A for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 21 Jan 2013 18:25:50 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TxTWY-0004f2-9W for ietf-http-wg-dist@listhub.w3.org; Tue, 22 Jan 2013 02:23:42 +0000
Resent-Date: Tue, 22 Jan 2013 02:23:42 +0000
Resent-Message-Id: <E1TxTWY-0004f2-9W@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <willchan@google.com>) id 1TxTWQ-0004eD-L4 for ietf-http-wg@listhub.w3.org; Tue, 22 Jan 2013 02:23:34 +0000
Received: from mail-qa0-f43.google.com ([209.85.216.43]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <willchan@google.com>) id 1TxTWM-0005Sg-Ie for ietf-http-wg@w3.org; Tue, 22 Jan 2013 02:23:34 +0000
Received: by mail-qa0-f43.google.com with SMTP id cr7so7217341qab.2 for <ietf-http-wg@w3.org>; Mon, 21 Jan 2013 18:23:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=KMqWsoIRyftt8S7eWWc303uIdOzPXu2UP6A+u70o8/U=; b=YeWOrxL0A8zrctP7PsAtchW43IXFT8FQ+gGgN8TnarJKUb/BNrmqwq8IEFksJFN40I tEqjzs7HDy33T2HTKIk+QjK1Pw6qgiHCiUsvXxPEbDLs7iSjde/KB1ly3AI9t39hXw/e OAytDUPP88sQqK9QlmAmW/9xjIlEIJyFkNL9bGAn/d+HCQnCiEybTatfwYGvKGQ13Xq0 0ZevXxs7u3Y71H2qOX4A7drXg7otJq1FWSvcckW0GgfiZsiAQcU4EqU4/6uPIm20Q0kb LtzWlZjbRMUMdjj7J/Sq3poWFgb7cBJCwJZuEd4VKU9tqm3bwaJH+oRsRig3aguUg+74 XfsQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=KMqWsoIRyftt8S7eWWc303uIdOzPXu2UP6A+u70o8/U=; b=M2QdiJIRWQzrwSlzsbe47IkICHp64MueZQYvhPJxlx2HokMHYisgb0fmiW2Lew7fSe PjxCNw8YDmeub3fZy+RvzsDv6gGEDHQrS5C3sAJT0naLFEPmVG6XMYjW5p3DUbLSypEj lf+46/o7Xy6/dN+ZTd75r+1Wuohz7ZTTO2KEs=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding:x-gm-message-state; bh=KMqWsoIRyftt8S7eWWc303uIdOzPXu2UP6A+u70o8/U=; b=VdxVcMtRNvJGsnFyWXGFei/w+yBqcadDYutD04/ndaihlpQns4VYqEig487m7c53O6 B3kvozfVtnrlj13jhg7HZFLyk09UQ1BS7IUK7y1FnVpcqk/kwEcz1RD3wkZSEjoOw3M6 q1Eo8aCTTa4/85nV3Tn+wUu0puBE/TjlE98me8176P98iVAU/ToXG99XhTolJ2KO35B3 8T0Qlg6o1qWWp2VFLS7PTXXFwV43mh73DqnETrOfXjLqmARmJkANTHJgJCH85uyP5kgq vzcFstYgKfHSPd76aNNTCMAWmxsEXTOpDERoACRDoFj4CrNVMqEQrdbzWYbBUXtziehE lZeA==
MIME-Version: 1.0
X-Received: by 10.229.179.23 with SMTP id bo23mr1499795qcb.104.1358821384236; Mon, 21 Jan 2013 18:23:04 -0800 (PST)
Sender: willchan@google.com
Received: by 10.229.57.163 with HTTP; Mon, 21 Jan 2013 18:23:04 -0800 (PST)
In-Reply-To: <811EDF18-4B55-4732-8307-F6B4E0F07DF6@free.fr>
References: <20130121233617.11829.39388.idtracker@ietfa.amsl.com> <811EDF18-4B55-4732-8307-F6B4E0F07DF6@free.fr>
Date: Mon, 21 Jan 2013 18:23:04 -0800
X-Google-Sender-Auth: OZvav_R6oxeqYyV2cDOMVd7lcGo
Message-ID: <CAA4WUYjftBfen1-H9kq7zRCfCf-ST5fkv+Y9CCaRJ6TEBMRrPw@mail.gmail.com>
From: "William Chan (陈智昌)" <willchan@chromium.org>
To: Frédéric Kayser <f.kayser@free.fr>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Gm-Message-State: ALoCoQncuO6bW9zKufnXCAvvPeiOEYCTJGzZBLCmOco6LRVkbuUQsQunspzDwxpTxs4/DFM9thEZlJ+du7GnBDCW7XJ6DZvlNRYLWO+OSttRJRtLnW4NLfZITl5pLIt2fOxI3V6G7nUjSw7jR5vlR2xVh8ElWOO6RmZleXhHANkPbVCuUE14XvKsrISOYTXrzypB/rYN+JQg
Received-SPF: pass client-ip=209.85.216.43; envelope-from=willchan@google.com; helo=mail-qa0-f43.google.com
X-W3C-Hub-Spam-Status: No, score=-3.6
X-W3C-Hub-Spam-Report: AWL=-2.770, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TxTWM-0005Sg-Ie 71e90e0ec10bf4a1960f6b1ed5ed890b
X-Original-To: ietf-http-wg@w3.org
Subject: Re: How to stop receiving a pushed resource? (I-D Action: draft-ietf-httpbis-http2-01.txt)
Archived-At: <http://www.w3.org/mid/CAA4WUYjftBfen1-H9kq7zRCfCf-ST5fkv+Y9CCaRJ6TEBMRrPw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16088
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>

Yes, the text at the bottom of your email is the mechanism that should
be used. It's possible that we could use some other mechanism to
convey the client cache in some way. There are many issues with it of
course.

Note that web developers are already pushing resources. It's called
resource inlining
(https://developers.google.com/speed/docs/pss/InlineSmallResources).
These resources do not have their own URLs, are usually inlined into
uncacheable documents, and thus are rarely cached at all. Using server
push will enable them to have their own URLs and be cached by the
client if that makes sense.

Remember, once you issue a request to a server, the server can send
you anything in return. It's in our interest to provide them better
facilities for sending responses, or they will hack around it in less
optimal ways.

On Mon, Jan 21, 2013 at 5:35 PM, Frédéric Kayser <f.kayser@free.fr> wrote:
> Hello,
> is this the mechanism clients should use to stop receiving pushed resources they already have in their local cache?
> How are servers supposed to guess what to push or not? Is it be based on modification date, could the clients send some hints?
>
> Frédéric
>
>> 4.3.2.  Client implementation
>>
>>    When fetching a resource the client has 3 possibilities:
>>
>>       the resource is not being pushed
>>
>>       the resource is being pushed, but the data has not yet arrived
>>
>>       the resource is being pushed, and the data has started to arrive
>>
>>    When a SYN_STREAM and HEADERS frame which contains an Associated-To-
>>    Stream-ID is received, the client must not issue GET requests for the
>>    resource in the pushed stream, and instead wait for the pushed stream
>>    to arrive.
>>
>> [...]
>>
>>    To cancel individual server push streams, the client can issue a
>>    stream error (Section 3.4.2) with error code CANCEL.  Upon receipt,
>>    the server MUST stop sending on this stream immediately (this is an
>>    Abrupt termination).
>
>