Bug 167497 - Implement Cache-control: immutable
Summary: Implement Cache-control: immutable
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-27 03:56 PST by Antti Koivisto
Modified: 2017-03-12 08:29 PDT (History)
8 users (show)

See Also:


Attachments
patch (11.54 KB, patch)
2017-01-27 06:50 PST, Antti Koivisto
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Koivisto 2017-01-27 03:56:07 PST
Cache-control value 'immutable' indicates that a subresource does not change and so does not need to be revalidated on a normal reload. This can significantly speed up reloads and reduce network traffic.

It is has been implemented in Firefox and is already used by Facebook.

https://tools.ietf.org/html/draft-mcmanus-immutable-00
https://hacks.mozilla.org/2017/01/using-immutable-caching-to-speed-up-the-web/
Comment 1 Antti Koivisto 2017-01-27 06:50:20 PST
Created attachment 299930 [details]
patch
Comment 2 Chris Dumez 2017-01-27 09:15:40 PST
Comment on attachment 299930 [details]
patch

r=me
Comment 3 Antti Koivisto 2017-01-27 10:20:16 PST
We may want to implement Chrome-style reload behavior where non-expired subresources with explicit cache lifetime are never revalidated. This would make 'immutable' support unnecessary. Meanwhile, lets try this.
Comment 4 Chris Dumez 2017-01-27 10:21:04 PST
(In reply to comment #3)
> We may want to implement Chrome-style reload behavior where non-expired
> subresources with explicit cache lifetime are never revalidated. This would
> make 'immutable' support unnecessary. Meanwhile, lets try this.

Agreed
Comment 5 Antti Koivisto 2017-01-27 10:35:57 PST
<rdar://problem/30236250>
Comment 6 WebKit Commit Bot 2017-01-27 10:45:39 PST
Comment on attachment 299930 [details]
patch

Clearing flags on attachment: 299930

Committed r211288: <http://trac.webkit.org/changeset/211288>
Comment 7 WebKit Commit Bot 2017-01-27 10:45:45 PST
All reviewed patches have been landed.  Closing bug.