Jump to:
| 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
We'll have to take http://hacks.mozilla.org/2012/03/there-is-no-simple-solution-for-local-s... into account.
#2
Also see http://drupal.org/project/appcache and http://drupal.org/sandbox/Crell/1284648.
#3
We may be able to learn from http://std.li/pastel/home.html#docs as well.
#4
More relevant links:
- http://www.alistapart.com/articles/application-cache-is-a-douchebag/
- http://diveintohtml5.info/offline.html