Re: Submitted new I-D: Cache Digests for HTTP/2

Chris Bentzel <chris@bentzel.net> Mon, 11 January 2016 10:47 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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 30AF21A88EF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 11 Jan 2016 02:47:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.28
X-Spam-Level:
X-Spam-Status: No, score=-6.28 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001, 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 vaDuTceSiLjv for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 11 Jan 2016 02:47:55 -0800 (PST)
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 9AC7F1A88F6 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 11 Jan 2016 02:47:55 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1aIZw4-00013U-RE for ietf-http-wg-dist@listhub.w3.org; Mon, 11 Jan 2016 10:42:52 +0000
Resent-Date: Mon, 11 Jan 2016 10:42:52 +0000
Resent-Message-Id: <E1aIZw4-00013U-RE@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 <chris@bentzel.net>) id 1aIZw1-00012n-3n for ietf-http-wg@listhub.w3.org; Mon, 11 Jan 2016 10:42:49 +0000
Received: from mail-ig0-f181.google.com ([209.85.213.181]) by lisa.w3.org with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from <chris@bentzel.net>) id 1aIZvz-0000hu-7X for ietf-http-wg@w3.org; Mon, 11 Jan 2016 10:42:48 +0000
Received: by mail-ig0-f181.google.com with SMTP id ik10so119500205igb.1 for <ietf-http-wg@w3.org>; Mon, 11 Jan 2016 02:42:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bentzel-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=FTjWwGEsNJdbUgFn0HvldZL09UipiAXuyjlkjN2QHEw=; b=Su8Ng67GS0hwIec3vASgL8QcebuEWwuHvoT9aPNxB33xOJ6tm5TQs/GI8XtziSWFLX 11ECaDXbi/PeeK+V5Tk+IER23k4CQKy9M8opqNjK51WDvr6VkKdQgsE/n8oZBSncDy2V ydOzQNyNzSg2B/J0fRUAhyTgey+rV765MEy0T2TxaaQtAvpNusUDuE2x2uJYkOnVppR2 x9rk002WPSRNS5HKIyGAOZTgqGB/T4ZIGi1Pjdcd+l0/k6mVWGC8rqpNyKgmME+2P4J/ z0e54VexAbNDCXXEX0Fhg8qB5229qyzKMsuyxoAtWnMNBPYqAdS8kGKBbunmwCFPD/Ks 9gaQ==
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=FTjWwGEsNJdbUgFn0HvldZL09UipiAXuyjlkjN2QHEw=; b=bqTgTua1haukWqi3SOJXuMsGbjFs9eifQhUKYiV2Dbh+I56V2yYxA5QQqgoE7loQFT 6Bw3U2XgHPNuguHlsg4t5tyI0XUMO2ENmRGN/u0YKJ6IRAwzMnSS1tmJrh2V6ULF28hu LjSoAUrIG8vGzolBJdHGP5+nAKc9mw2zW6A+T0pgmyYLGrWvpjXiWWA4L49Bnvr/Giuq LS5ZXKfRsWGkBeK8qGNuecQ2TvrXlcLxJ8UlPlg4TUFRUXGVYPx08k99IpZkdd+2CKwU B9cTBSd/czOCcPWzRhdOFFZSHS9OOjj7cO1iTnf09obkeH9y6o+o4j9zL9maf2RMcVRu f84Q==
X-Gm-Message-State: ALoCoQnZnsb1HKNKAQv6U6dHsgij81zQDgr9wyWPVdZGuIEM2WVUBvDBg/zvwVjD+4WH2m5gXFm0S4Sj0myofc1wwINTG+sm/g==
MIME-Version: 1.0
X-Received: by 10.50.6.42 with SMTP id x10mr11668305igx.14.1452508940822; Mon, 11 Jan 2016 02:42:20 -0800 (PST)
Received: by 10.107.130.156 with HTTP; Mon, 11 Jan 2016 02:42:20 -0800 (PST)
In-Reply-To: <652C3E3A-3DA6-40BB-82FF-01A7D65FF65C@lukasa.co.uk>
References: <CAAMqGzYUoCMxBxUEY9wfLOHZp7nrO4d1q5JZo=96pfEbVS1-ew@mail.gmail.com> <652C3E3A-3DA6-40BB-82FF-01A7D65FF65C@lukasa.co.uk>
Date: Mon, 11 Jan 2016 05:42:20 -0500
Message-ID: <CABCZv0piAoDnA1J+2pJ3HyF_iRwj9AaFGfonFjdKGfYr=cGZgQ@mail.gmail.com>
From: Chris Bentzel <chris@bentzel.net>
To: Cory Benfield <cory@lukasa.co.uk>
Cc: Alcides Viamontes E <alcidesv@zunzun.se>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="047d7bdca2e873a40e05290c975e"
Received-SPF: none client-ip=209.85.213.181; envelope-from=chris@bentzel.net; helo=mail-ig0-f181.google.com
X-W3C-Hub-Spam-Status: No, score=-5.8
X-W3C-Hub-Spam-Report: AWL=-1.151, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: lisa.w3.org 1aIZvz-0000hu-7X 0574a4f575b28ecfcc78e7f2518604f4
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Submitted new I-D: Cache Digests for HTTP/2
Archived-At: <http://www.w3.org/mid/CABCZv0piAoDnA1J+2pJ3HyF_iRwj9AaFGfonFjdKGfYr=cGZgQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/30883
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>

The draft does cover some privacy concerns (such as clearing the digest
when cookies are cleared).

One concern not covered is how to deal with cases where a client may have
cached content from an origin with a mix of cookies. For example, if a user
has enabled third-party cookie blocking in a browser and has visited an
origin in both a first-party and third-party context there may be a mix of
cached content with a session identifier cookie and no cookie.

If the user re-visits that origin in a first-party context, the digest may
reveal content retrieved in a third-party context.

One option is to treat cached content as if there is an implicit Vary:
Cookie header and only include in the digest if it matches. The draft
already requires only including fresh cached entries in the digest so a
selection process for cached entries already will need to exist.

On Mon, Jan 11, 2016 at 3:16 AM, Cory Benfield <cory@lukasa.co.uk> wrote:

>
> > On 10 Jan 2016, at 17:11, Alcides Viamontes E <alcidesv@zunzun.se>
> wrote:
> >
> > Can we embed the cache digest in a header?
> > ——————————————————————————————
> >
>
> On a personal level I am extremely nervous about shoving 24kB of data into
> a header value. The practice of doing this for Kerberos tokens already
> caused us to require the CONTINUATION frame unpleasantness in RFC 7540.
> Generally speaking it seems like smuggling long strings in HTTP headers is
> a bit of an anti-pattern, and given that HTTP/2 gives us much nicer methods
> of transporting this kind of data it seems a shame not to use them.
>
> Cory
>
>