Download & Extend

Use localStorage & app cache

Project:CDN
Version:7.x-2.x-dev
Component:Origin Pull mode
Category:feature request
Priority:normal
Assigned:Wim Leers
Status:postponed

Issue Summary

Now that the CDN module's Far Future expiration support has landed (#974350: Far Future setting for Origin Pull mode), we can do something very cool: use localStorage and app cache to enforce even longer caching.

Browsers that support LS (localStorage) & AC (app cache) don't tend to flush those. The "regular browser cache", which is the one that's being used thanks to Far Future expiration, *does* get flushed relatively frequently (and depending on the device). Since it is now easy to track which resources can be cached permanently (any with a "cdn/farfuture/" substring), it is also fairly easy to leverage these caches.

This will especially make repeat visits on mobile devices significantly faster.

Comments

#1

#2

#3

We may be able to learn from http://std.li/pastel/home.html#docs as well.

#4

nobody click here