Re: Proposal: Cookie Priorities

Matthew Kerwin <matthew@kerwin.net.au> Mon, 07 March 2016 03:34 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 F082E1A878B for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 6 Mar 2016 19:34:44 -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 YIGYady5tA7t for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 6 Mar 2016 19:34:41 -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 205981A8789 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 6 Mar 2016 19:34:41 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1aclrp-0001ri-EY for ietf-http-wg-dist@listhub.w3.org; Mon, 07 Mar 2016 03:29:57 +0000
Resent-Date: Mon, 07 Mar 2016 03:29:57 +0000
Resent-Message-Id: <E1aclrp-0001ri-EY@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 <phluid61@gmail.com>) id 1aclrj-0001qj-5q for ietf-http-wg@listhub.w3.org; Mon, 07 Mar 2016 03:29:51 +0000
Received: from mail-oi0-f42.google.com ([209.85.218.42]) by lisa.w3.org with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from <phluid61@gmail.com>) id 1aclrd-0006Kn-8X for ietf-http-wg@w3.org; Mon, 07 Mar 2016 03:29:50 +0000
Received: by mail-oi0-f42.google.com with SMTP id d205so71675195oia.0 for <ietf-http-wg@w3.org>; Sun, 06 Mar 2016 19:29:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=zebCcnRNMUCtJbhsCsMLe3Jl95/Eyk3bWvX9ZFt3vDk=; b=rFwS8anybz4utUr1gWVqko8qNdVJBonYfpcOjQ4kgWvbIS2x62azRDMrb0/ytiNE4B GKcfdt+iXiIuzJZtfN3sVwdmlHNN3wFWpTC2zRGtOjsPQ/AuhZx66c7YWNc8mbzyZUWs UcbbzC52AwR2IgUT5D1twnIeVufOBXk2vvhD8/fSxf9UM8ebHZUkcDWpVFPMdCFvPt4G PcoMJL9KmDJQKKTPDgHhnO6RFzliHagLBCRyWwTRrR3jsIqlG/ZFLheAvQpBzXB1ABTf +AxjZA0HUBQk8zKTRlWZDhis9Hqz/HVxhtrMY7qS6IieaHMJjeGxO5gpV/O2j0cjeARB YiLg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=zebCcnRNMUCtJbhsCsMLe3Jl95/Eyk3bWvX9ZFt3vDk=; b=LvSsOcoAq0YBAALMLq/IWIVVbGlcHytiVJFKftCbHWzjaaksLX2Icz0m6lsCA+PMCG 0GIY8+f/LGik7eaFRnj4Z8L94KQ3Alc3KNSJg3Tm9QhA3vuPofDMUpp2Y1gWBTtsFGdf CgsnH/ieWOZG+Az3pm12BC8J2pyj1Wcy1RR0lgH9aoiFt7X7y/S84DjmIwsKs573ppxe XbCPX6HxakYRUQY+6DlBFRJfd4mU+x+IY5E/0rNPUPNGavWnY2lbTcYEaCnKmz+eNJTI hPRjKR07xV7K/Jmfy/xtTmdT5cf4Uv2XvSgm9Htla/0WeVp0EuK4gHJ3zhNoOyeLIUI9 0iDQ==
X-Gm-Message-State: AD7BkJIKVGn++pmmxtOExUz0aaOW9reUUohWfA/mvJ5YRd5SlsCMxHzQhNUada3RTt2USNt+NIdakRfn1QwoLg==
MIME-Version: 1.0
X-Received: by 10.202.61.85 with SMTP id k82mr12437026oia.114.1457321358994; Sun, 06 Mar 2016 19:29:18 -0800 (PST)
Sender: phluid61@gmail.com
Received: by 10.202.181.10 with HTTP; Sun, 6 Mar 2016 19:29:18 -0800 (PST)
In-Reply-To: <56DCE753.6020409@treenet.co.nz>
References: <CAKXHy=dvxE5f25_xx3mKTc+XRDU_Hp=uFDy-iL-_c0s+xHGydw@mail.gmail.com> <4F1B2115-C2BB-42AD-A5AB-EC02E9598ACB@mnot.net> <CACweHNCFzsrc1HacyFdj6Oigm1pxJaeqFjXWaZC9jz-oYboymQ@mail.gmail.com> <56DCE753.6020409@treenet.co.nz>
Date: Mon, 07 Mar 2016 13:29:18 +1000
X-Google-Sender-Auth: EBp0_vTkqvRV6o5I5eAquLroo-w
Message-ID: <CACweHNDTeO1w1gnVvC3JMcOXnvHkye-PEd_URiKex7Awm7dfKw@mail.gmail.com>
From: Matthew Kerwin <matthew@kerwin.net.au>
To: Amos Jeffries <squid3@treenet.co.nz>
Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="001a113cd1c0ed3592052d6d115e"
Received-SPF: pass client-ip=209.85.218.42; envelope-from=phluid61@gmail.com; helo=mail-oi0-f42.google.com
X-W3C-Hub-Spam-Status: No, score=-5.1
X-W3C-Hub-Spam-Report: AWL=-0.783, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: lisa.w3.org 1aclrd-0006Kn-8X e00aca00b6dfcb517cebfa545501eb58
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Proposal: Cookie Priorities
Archived-At: <http://www.w3.org/mid/CACweHNDTeO1w1gnVvC3JMcOXnvHkye-PEd_URiKex7Awm7dfKw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/31207
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 7 March 2016 at 12:28, Amos Jeffries <squid3@treenet.co.nz> wrote:

>
> My take has been from the beginning that we should start pruning away
> pieces of Cookie to prevent bad usages a much as possible.
>
> This particular baindaid proposal looks like it might double as a nice
> way to allow any recipient or relay to proactively prune away the
> low-priority Cookies in traffic when bandwidth gets overloaded. Can it
> be the beginning of an efficient Cookie deletion mechanism?
>
>
​Maybe, but I have reservations...

Regarding "Priority=High": Currently cookies are often used on the critical
path, and these existing cookies don't have a "Priority" attribute. We
can't define a new spec that retroactively mandates that implementers have
to add the attribute, so I imagine we would probably want to define it so
that "no Priority" is as high as "High Priority." (Unless we're proposing
to define a new supe..uh..'more important' cookie.) So all the existing
dead wood remains, and the path of least resistance for implementers who
want to comply with the spec is: don't do anything. Thus it's not a
valuable addition.

Regarding "Priority=Low": this allows/encourages people to add even more
cookies, because "they're low priority, so they're less harmful." Telling
people to add a bunch of fluffy cookies because 'they can be pruned if
there are too many' doesn't seem like an improvement to me. Better advice
would be: don't send so much cruft in cookies.

(At the risk of sounding idealistic:) Do we want to make it easier for
middleboxen to cover up the abuses of pathological web applications?

Cheers
-- 
  Matthew Kerwin
  http://matthew.kerwin.net.au/