crowell / modpagespeed_tmp

Automatically exported from code.google.com/p/modpagespeed
Apache License 2.0
0 stars 0 forks source link

Support next page prefetching with LINK rel=PREFETCH #270

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
On Firefox, <LINK rel=PREFETCH> can be used to prefetch a web page, but not any 
resources that page might reference.  However, if the resulting HTML is 
non-cacheable this has no useful effect other than to waste bandwidth.

By generating HTML with a very short cache lifetime (say between 0 and 15 
seconds), we should be able to make site pages usefully prefetchable on 
firefox.  We can achieve similar effects on other browsers using XHR calls if 
the content is cacheable.  Even if the prefetch expires, it can be refreshed 
using a conditional get (though mod_pagespeed would also need to support 
conditional get of HTML content, which might be optional for now).

Barring this, we can also prefetch page resources directly (eg, pull down 
images, css, and js referenced from a likely navigation destination).  This 
doesn't require us to make HTML cacheable.  There are, however, reasons to 
worry that this won't work well on certain browsers.

Original issue reported on code.google.com by jmaes...@google.com on 11 Apr 2011 at 11:01

GoogleCodeExporter commented 9 years ago

Original comment by jmaes...@google.com on 28 Nov 2012 at 4:58

GoogleCodeExporter commented 9 years ago

Original comment by j...@google.com on 11 Dec 2012 at 3:06

GoogleCodeExporter commented 9 years ago
Another longer-term large project.  This will require substantial 
instrumentation of the property cache to capture referer data.

Original comment by jmaes...@google.com on 11 Dec 2012 at 4:03