Re: dont-revalidate Cache-Control header

Guille -bisho- <bishillo@gmail.com> Thu, 16 July 2015 20:28 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 649E01A89A2 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 16 Jul 2015 13:28:58 -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 KlUP-8dMToZL for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 16 Jul 2015 13:28:56 -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 AEF441A88D2 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 16 Jul 2015 13:28:56 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1ZFpjR-0004Yi-4a for ietf-http-wg-dist@listhub.w3.org; Thu, 16 Jul 2015 20:26:13 +0000
Resent-Date: Thu, 16 Jul 2015 20:26:13 +0000
Resent-Message-Id: <E1ZFpjR-0004Yi-4a@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 <bishillo@gmail.com>) id 1ZFpjM-0004Xn-Q0 for ietf-http-wg@listhub.w3.org; Thu, 16 Jul 2015 20:26:08 +0000
Received: from mail-ie0-f177.google.com ([209.85.223.177]) by lisa.w3.org with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from <bishillo@gmail.com>) id 1ZFpjD-0003tE-3g for ietf-http-wg@w3.org; Thu, 16 Jul 2015 20:26:08 +0000
Received: by ietj16 with SMTP id j16so64063353iet.0 for <ietf-http-wg@w3.org>; Thu, 16 Jul 2015 13:25:32 -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=NnwvbqOfvmmWQEVsgVa7m4u+DwOmAUs1DT7ZldrB6aw=; b=PS9qlqhCxmFZAALpuesTkliCQt2Af4Car/eZq/lP0bAZlECQbQtgLByE9a6LXC0/d9 rWS6ALLzZ5b/4mqzS/qHi88mXlMo74qheXT4kLlDOqbmOxWCOFmB9yc0Xw8lwDoWWI5A AdwHIBqVCfzeRaToWRHGakfiDccGWQ0eVaoEE53i+oo324G1/QNiEuVduTvUzgqM7fVO X3oMDco0gfxeiZuY+wBAWYg/IeJQ7bIBcrgkhYYPnkver7llXdla93IIyGhRvZ/gd6lz RSZDeI5AyYTdIFMKFIEpwtHAi0CoejtbQwzRcyUaX5WtqL+5xbqMlUW+hmkNnSd9V+eI NG2w==
X-Received: by 10.107.129.101 with SMTP id c98mr14485643iod.96.1437078332706; Thu, 16 Jul 2015 13:25:32 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.107.142.200 with HTTP; Thu, 16 Jul 2015 13:25:13 -0700 (PDT)
In-Reply-To: <CABkgnnWG9mSg=pCT91tVfEEs1TCxHVnNWRopsPTr+eC4K4Vewg@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> <CAMSE37v6qXzNquAqGPaHgVJYwfGeC+uE1hurc7g4wvoL1nvgkA@mail.gmail.com> <CABkgnnX3OMJ2=5AQcYHB9XeN0TEo0OTrcRmrpBujrqCNwnjOag@mail.gmail.com> <CAMSE37uwbLokWApCUMtj5G9zW4p5RzY63XOx-+VeiRdouw3-SA@mail.gmail.com> <CABkgnnWG9mSg=pCT91tVfEEs1TCxHVnNWRopsPTr+eC4K4Vewg@mail.gmail.com>
From: Guille -bisho- <bishillo@gmail.com>
Date: Thu, 16 Jul 2015 13:25:13 -0700
Message-ID: <CAMSE37tvbsFjK5vGVg=wYRz4Fhjh5L6+ohj4fw5SAPQhuw7i7w@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="001a113ecad08915d1051b03dfff"
Received-SPF: pass client-ip=209.85.223.177; envelope-from=bishillo@gmail.com; helo=mail-ie0-f177.google.com
X-W3C-Hub-Spam-Status: No, score=-5.5
X-W3C-Hub-Spam-Report: AWL=-0.818, 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: lisa.w3.org 1ZFpjD-0003tE-3g e982ba713e1195ed1765b1355cf94224
X-Original-To: ietf-http-wg@w3.org
Subject: Re: dont-revalidate Cache-Control header
Archived-At: <http://www.w3.org/mid/CAMSE37tvbsFjK5vGVg=wYRz4Fhjh5L6+ohj4fw5SAPQhuw7i7w@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/29981
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 1:07 PM, Martin Thomson <martin.thomson@gmail.com>
wrote:

> On 16 July 2015 at 13:03, Guille -bisho- <bishillo@gmail.com> wrote:
> > No if we don't allow self-reference. www.foo.com can only disable
> > revalidations on other *different* domains and those are effective for
> > sub-resources only, no direct page navigations.
>
> That's a bizarre limitation.  It means that you have to own or use
> servers (or two names) in order to use the feature.  That's a pretty
> arbitrary limitation.
>

Well, yes, we can allow the same domain too.


> It also doesn't work, because if you do own the two names, you can use
> one to freeze the other.
>

Again, it will only work for sub-resources, and the resources loaded still
need the cache-headers.

If a.com freeze b.com/index.html, it will be freezed only for reloads on
a.com! and you can unfreeze at any time removing the policy from a.com.
Loading b.com will work as normal, won't be following any policies imposed
by a.com.

To be clear, the policies specified on a page will be only valid during the
load of sub-reources for THAT page. The cached resources won't have any
"static" property associated, will follow the same current cache control
policies in use. We will just allow pages to request the browser not to
revalidate cached content for domains of their choice.

Like I said, you can implement your proposed solution today, without
> writing any standards.  Sure, only Chrome supports it right now, but
> that's a whole lot more of the web than none of it.
>

AFAIK CacheStorage for service workers does not reuse the internal browser
cache, it's more limited and I suspect implementing this with service
workers will be far slower in general. It's good for implementing an
offline application, but not as good for implementing a general browser
cache solution.

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