Re: dont-revalidate Cache-Control header

Guille -bisho- <bishillo@gmail.com> Thu, 16 July 2015 18:22 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 0FCCF1B2CD7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 16 Jul 2015 11:22:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.011
X-Spam-Level:
X-Spam-Status: No, score=-7.011 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 KSg88iVtCoLa for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 16 Jul 2015 11:22:47 -0700 (PDT)
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 7A1F11B2CD0 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 16 Jul 2015 11:22:47 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1ZFnlI-0001i0-Gc for ietf-http-wg-dist@listhub.w3.org; Thu, 16 Jul 2015 18:20:00 +0000
Resent-Date: Thu, 16 Jul 2015 18:20:00 +0000
Resent-Message-Id: <E1ZFnlI-0001i0-Gc@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <bishillo@gmail.com>) id 1ZFnlE-0001hF-6K for ietf-http-wg@listhub.w3.org; Thu, 16 Jul 2015 18:19:56 +0000
Received: from mail-ig0-f178.google.com ([209.85.213.178]) by maggie.w3.org with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from <bishillo@gmail.com>) id 1ZFnlC-000553-Tt for ietf-http-wg@w3.org; Thu, 16 Jul 2015 18:19:55 +0000
Received: by igvi1 with SMTP id i1so19258123igv.1 for <ietf-http-wg@w3.org>; Thu, 16 Jul 2015 11:19:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=AUVvHPXz1UPZAnJ/ruH8bpBotqlP/LrnCDCwyOUa0XU=; b=iD9655Qmb39ptMgeUadWH1BtYEmNsVJmXvE4KcvTMFH9pVp6Zep8jly+fRJpssfTIy q7EKBzwM6ir3vJlrndHUdohU+Dgt+cBUgeMiv2QdeE2FNp99bAftN0X+ehwesB8nlUsv 6mWawxrPTghJUcmzraiPD+atm9toCR/7qnqFOmauIeM16nzg++CDDgJ6VyYa8vyp4JJ6 nLPpoVh02v+fJm3ZVVbWHt1XeM2An4v5wQ2YX0cJuHFjiSrGL3Sm/Ak856rGCQ7iJVRv jwfehTA1Mmh/7Nzh7lLQtILNgfNwJzjo9EnpPuDaGos1rbpodvCj5XpaMToTS1dehxRj HnJw==
X-Received: by 10.107.3.139 with SMTP id e11mr13428342ioi.18.1437070768670; Thu, 16 Jul 2015 11:19:28 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.107.142.200 with HTTP; Thu, 16 Jul 2015 11:19:09 -0700 (PDT)
In-Reply-To: <CABkgnnXNAZdXUx_htq2owyP2CtyM-ERzZdbxM8WGWLrCeNQOaQ@mail.gmail.com>
References: <CABgOVaLHBb4zcgvO4NUUmAzUjNkocBGYY3atFA9iuYyoLaLQsA@mail.gmail.com> <559F9E90.4020801@treenet.co.nz> <CABgOVaLG6QZyjqk2AGYupShST_u3ty9BpxUcPX+_yMEC1hyHAQ@mail.gmail.com> <961203FE-7E54-410F-923E-71C04914CD2E@mnot.net> <CABgOVaJxntEyT0v4GvWm0Qi9jbUPEnzxJgg4KyQSM1T_gN1mjQ@mail.gmail.com> <16407353-5C34-42E8-81A6-E0027EC3A0D0@mnot.net> <CABgOVa+C48yYp-ZkawY+Ho6pXONa_UfB0MVt_2+d0ejyESu2Pw@mail.gmail.com> <54973543-2406-4188-8DCD-AE3C85ACB76A@mnot.net> <CABgOVa+CrJ0qBGN-nBYZ2qpJo8X+wkYY-zYAqM6MjTom1QT+Bw@mail.gmail.com> <55A7A4F9.1010500@treenet.co.nz> <CABgOVaLnpnmd7JvY6O=tXXboVuvCCn-p1KLzu8wKVkg-yon79w@mail.gmail.com> <CAMSE37vmBJYkiC+c5+aMqWUvLtY4zOHDbhEJkm=K+=KbTyOO2A@mail.gmail.com> <CABkgnnXNAZdXUx_htq2owyP2CtyM-ERzZdbxM8WGWLrCeNQOaQ@mail.gmail.com>
From: Guille -bisho- <bishillo@gmail.com>
Date: Thu, 16 Jul 2015 11:19:09 -0700
Message-ID: <CAMSE37v6qXzNquAqGPaHgVJYwfGeC+uE1hurc7g4wvoL1nvgkA@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: Ben Maurer <ben.maurer@gmail.com>, Amos Jeffries <squid3@treenet.co.nz>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="001a113eb65caf0fbc051b021ccd"
Received-SPF: pass client-ip=209.85.213.178; envelope-from=bishillo@gmail.com; helo=mail-ig0-f178.google.com
X-W3C-Hub-Spam-Status: No, score=-5.4
X-W3C-Hub-Spam-Report: AWL=-0.682, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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: maggie.w3.org 1ZFnlC-000553-Tt cf7a54c2ca93171a3ac1ca09c2a0287e
X-Original-To: ietf-http-wg@w3.org
Subject: Re: dont-revalidate Cache-Control header
Archived-At: <http://www.w3.org/mid/CAMSE37v6qXzNquAqGPaHgVJYwfGeC+uE1hurc7g4wvoL1nvgkA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/29977
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 Thu, Jul 16, 2015 at 11:01 AM, Martin Thomson <martin.thomson@gmail.com>
wrote:

> On 16 July 2015 at 10:38, Guille -bisho- <bishillo@gmail.com> wrote:
> > The risk is still the typical ga.js url embedded in all websites. If a
> > bug/hack makes that static, you will need to ask all site owners to go
> and
> > change the url to something else, which will take ages.
>
> Shift-reload is a tool we provide our users to get around this class of
> problem.
>

I know, but you can't ask end-user to shift-reload easily... :/


> Also, we like to engineer security systems that don't have a
> point-in-time compromises of a system resulting in a persistent
> attack.
>
> Maybe we should look for alternatives.  If Facebook wanted to
> construct a service worker that handled fetch events for "static"
> resources and manage its own cache, we can't really stop that from
> happening.  We can't stop you from blocking your own requests after
> all.
>
> Note that this wouldn't work if the resources were requested by
> another origin unless you want to support foreign fetch events for
> service workers.
>

I would like to avoid a system like that.

A header or html directive indicating that sub-resources of a given domain
must not be revalidated and their ttl is for good will solve all security
issues, and still provide a really nice improvement.

- If a page adds the header by mistake, can easily remove it.
- A page can't self-reference their domain, so no risk of bricking
yourself.

-- 
Guille -ℬḭṩḩø- <bishillo@gmail.com>
:wq