Re: dont-revalidate Cache-Control header

Ilya Grigorik <igrigorik@gmail.com> Wed, 15 July 2015 02:58 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 3CAE51B30FB for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 14 Jul 2015 19:58:38 -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 o8GN-Ah3-dli for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 14 Jul 2015 19:58:36 -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 D6AAE1B30FD for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 14 Jul 2015 19:58:35 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1ZFCqo-0005JL-Jd for ietf-http-wg-dist@listhub.w3.org; Wed, 15 Jul 2015 02:55:14 +0000
Resent-Date: Wed, 15 Jul 2015 02:55:14 +0000
Resent-Message-Id: <E1ZFCqo-0005JL-Jd@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 <igrigorik@gmail.com>) id 1ZFCql-0005H9-40 for ietf-http-wg@listhub.w3.org; Wed, 15 Jul 2015 02:55:11 +0000
Received: from mail-qg0-f54.google.com ([209.85.192.54]) by lisa.w3.org with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from <igrigorik@gmail.com>) id 1ZFCqb-0007kj-D8 for ietf-http-wg@w3.org; Wed, 15 Jul 2015 02:55:09 +0000
Received: by qgy5 with SMTP id 5so12795105qgy.3 for <ietf-http-wg@w3.org>; Tue, 14 Jul 2015 19:54:35 -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=HSllmQ7kWmQwSuTiH8T2NUnWxQr4HZBkqVB0WM+vQ3Q=; b=hKhf5CBerCcSs+DwlajOP8ht6PEUu8X+irF+Jcx5nVRfPXlmt+jpwTiEWp8Til8HXX g05OGMVWclYwgUluMGgxaZIBcUS21FixSuSO1uiPhTX7Vjb+HumZK/9d+petZbN8mS24 Xj0Yywykw6RXmSCJRNBx97VEZtSWkw5EzH8v/wB334vgBxDlpK0lEjwfgxeMZ3zqvrQj nUFnYKYe3SUWoNjBKNZJueVEfUmhHJNaNvlq8j+VnNCaTsm9ZJ8Qworjokos8mfh5s6i CZPEexWwWqbwJqX/Sjpc+jVOoTfO+uLcr2M0XmD0X1YhXFCuRY93TCi2nQ5FzIMyXySk txrw==
X-Received: by 10.140.94.100 with SMTP id f91mr3731826qge.101.1436928875181; Tue, 14 Jul 2015 19:54:35 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.140.19.85 with HTTP; Tue, 14 Jul 2015 19:53:55 -0700 (PDT)
In-Reply-To: <A71CA75A-B614-4612-8C7F-9687B1204EFE@gbiv.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> <CAKRe7JFKEsUMaG40=yt5p=3hdXUBf-dVGaUV6fcA2N1wBwGkfw@mail.gmail.com> <A71CA75A-B614-4612-8C7F-9687B1204EFE@gbiv.com>
From: Ilya Grigorik <igrigorik@gmail.com>
Date: Tue, 14 Jul 2015 19:53:55 -0700
Message-ID: <CAKRe7JHd4v=6DtYY=PL7c8kuV=KcqmG4sRK6L2o+EJi8gYi2rQ@mail.gmail.com>
To: "Roy T. Fielding" <fielding@gbiv.com>
Cc: Ben Maurer <ben.maurer@gmail.com>, Mark Nottingham <mnot@mnot.net>, Amos Jeffries <squid3@treenet.co.nz>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="001a113923042c3d22051ae1134e"
Received-SPF: pass client-ip=209.85.192.54; envelope-from=igrigorik@gmail.com; helo=mail-qg0-f54.google.com
X-W3C-Hub-Spam-Status: No, score=-6.0
X-W3C-Hub-Spam-Report: AWL=-0.290, 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_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: lisa.w3.org 1ZFCqb-0007kj-D8 9f93e99728d49774a40f88e97626b5be
X-Original-To: ietf-http-wg@w3.org
Subject: Re: dont-revalidate Cache-Control header
Archived-At: <http://www.w3.org/mid/CAKRe7JHd4v=6DtYY=PL7c8kuV=KcqmG4sRK6L2o+EJi8gYi2rQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/29958
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 Tue, Jul 14, 2015 at 5:19 PM, Roy T. Fielding <fielding@gbiv.com> wrote:

> On Jul 14, 2015, at 3:33 PM, Ilya Grigorik <igrigorik@gmail.com> wrote:
>
> On Tue, Jul 14, 2015 at 3:03 AM, Ben Maurer <ben.maurer@gmail.com> wrote:
>
>> That said, this doesn't feel like a great thing for us to promote as a
>> web performance best practice. "If you use long cache lifetimes for your
>> static content, the dont-revalidate cache control header will reduce the
>> cost of client reloads" seems like a piece of advice folks might take, as
>> would "Use the <meta> tag 'dont-reload-non-expired-resources' to avoid
>> browsers revalidating your content when the user presses reload". On the
>> other hand "you should find every image, script, stylesheet, etc and set
>> the fetch option on each to say force-cached" feels more tedious and
>> unlikely to be used.
>>
>
> To this point, the HTTP mechanism is something that FEO / optimization
> proxies can do on your behalf - e.g. rewrite and/or bundle resources, add
> version fingerprint, append the HTTP header we're discussing here. By
> comparison, rewriting markup (HTML, CSS, JS) is significantly harder and
> very expensive. Which is to say.. +1 for HTTP directive over markup.
>
>
> No, it would be managed in the CMS along with all of the other decisions
> that led to a static version. Sane folks don't manage their content in an
> optimization proxy.


Most every CDN has an FEO product that performs resource optimization
(minification, obfuscation, bundling, fingerprinting + cache extension, and
more). PageSpeed modules [1] alone, which I'm most familiar with myself,
power many hundreds of thousands of sites. Which is to say, "sane folks" do
deploy such tools and with great success.

[1] https://developers.google.com/speed/pagespeed/module/