Stateful compression of cookies (Re: Delta Compression and UTF-8 Header Values)

Nico Williams <nico@cryptonector.com> Mon, 11 February 2013 02:10 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 7063B21F88B4 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 10 Feb 2013 18:10:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.101
X-Spam-Level:
X-Spam-Status: No, score=-8.101 tagged_above=-999 required=5 tests=[AWL=1.724, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_HI=-8, SARE_SUB_ENC_UTF8=0.152]
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 KDYga15SogiN for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 10 Feb 2013 18:10:56 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 47A5021F886E for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 10 Feb 2013 18:10:56 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1U4iq2-0003Dm-5y for ietf-http-wg-dist@listhub.w3.org; Mon, 11 Feb 2013 02:09:46 +0000
Resent-Date: Mon, 11 Feb 2013 02:09:46 +0000
Resent-Message-Id: <E1U4iq2-0003Dm-5y@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <nico@cryptonector.com>) id 1U4ipv-0003Cx-Ad for ietf-http-wg@listhub.w3.org; Mon, 11 Feb 2013 02:09:39 +0000
Received: from caiajhbdccac.dreamhost.com ([208.97.132.202] helo=homiemail-a65.g.dreamhost.com) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <nico@cryptonector.com>) id 1U4ipt-0008Tp-VC for ietf-http-wg@w3.org; Mon, 11 Feb 2013 02:09:39 +0000
Received: from homiemail-a65.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a65.g.dreamhost.com (Postfix) with ESMTP id 08D367E405D for <ietf-http-wg@w3.org>; Sun, 10 Feb 2013 18:09:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h= mime-version:date:message-id:subject:from:to:cc:content-type; s= cryptonector.com; bh=sFyW8LZIoa2RU3001hl/7lfYCzU=; b=EwQ11HbO2B5 5ETgA2pPZqE/YRCQV4K3kMGRpBXuOicqTCUhGXIoZPvawAkk5/PfWrJOWq8eu6O6 6CKUZhhk9bHXhzWJxgtCzZ5NJXVd7bFVvhh4nVKR5pE57j4CXotOqTXfCYSMo83u 4rh5/VPHQOTWV+IA9/aI3XXjT0nllp7g=
Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a65.g.dreamhost.com (Postfix) with ESMTPSA id A80B47E4057 for <ietf-http-wg@w3.org>; Sun, 10 Feb 2013 18:09:16 -0800 (PST)
Received: by mail-wi0-f172.google.com with SMTP id ez12so2644931wid.17 for <ietf-http-wg@w3.org>; Sun, 10 Feb 2013 18:09:15 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.194.60.5 with SMTP id d5mr3952978wjr.4.1360548555466; Sun, 10 Feb 2013 18:09:15 -0800 (PST)
Received: by 10.217.39.133 with HTTP; Sun, 10 Feb 2013 18:09:15 -0800 (PST)
Date: Sun, 10 Feb 2013 20:09:15 -0600
Message-ID: <CAK3OfOieNOsN7=2TV_25nTr+7Y3a-fyjSGV+F7HdbEQT8cB9xg@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc: Zhong Yu <zhong.j.yu@gmail.com>, Julian Reschke <julian.reschke@gmx.de>, "\"Martin J. Dürst\"" <duerst@it.aoyama.ac.jp>, James M Snell <jasnell@gmail.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: none client-ip=208.97.132.202; envelope-from=nico@cryptonector.com; helo=homiemail-a65.g.dreamhost.com
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-2.418, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001
X-W3C-Scan-Sig: maggie.w3.org 1U4ipt-0008Tp-VC 0eb838bd19d2aa55576fbe0aca79464e
X-Original-To: ietf-http-wg@w3.org
Subject: Stateful compression of cookies (Re: Delta Compression and UTF-8 Header Values)
Archived-At: <http://www.w3.org/mid/CAK3OfOieNOsN7=2TV_25nTr+7Y3a-fyjSGV+F7HdbEQT8cB9xg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16544
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>

... sounds like an oxymoron.

HOWEVER, we can probably use a combination of server-side state stored
[encrypted] in state cookies, small session identifiers, and
server-side caching of state cookies.  Clients would normally only
send the [small] session IDs, and would send the cookies only when the
server needs them to [re-]establish state after it falls off the
server's cache.

On Sun, Feb 10, 2013 at 6:15 PM, Poul-Henning Kamp <phk@phk.freebsd.dk> wrote:
> [1] We can probably do much more for transmission efficiency by killing
> cookies and adding client provided session-identifieres, than any
> kind of encoding or compression will ever be able to...[2]