[200 OK]: A Port80 Software Blog

We're all 200 OK: Web, HTTP and IIS Insights
posts - 199, comments - 719, trackbacks - 95

The Dark Side of Prefetching

“The Dark Side of Prefetching gives powers some browsers find unnatural.“

- Darth Sidious, former Nix admin

A while back, Port80 talked about prefetching in browsers and beyond (http://www.port80software.com/200ok/archive/2005/04/11/388.aspx and  http://www.port80software.com/200ok/archive/2004/11/18/191.aspx).  Now you see that accelerating proxies and all sorts of companies are getting into the prefetch game to improve user load time...

We are big supporters of speeding Web sites (as our readers must well know), but we have to say there is a dark side to prefetching -- wasting requests on pages and objects that are never looked at which could be particularly annoying, especially for IT folks.  Now, combine prefetching with a lack of cache control on your site objects or prefetching devices that grab stuff regardless of cache control, and you have a recipe for disaster. 

Fortunately, some prefetchers (notably Firefox) send a header; in Firefox's case, it is X-moz: prefetch (http://www.mozilla.org/projects/netlib/Link_Prefetching_FAQ.html#As_a_server_admin_can_I_distinguish), which you can look for and then potentially send a 403 to block. 

Of course, in other cases prefetchers may not play so nicely -- so be forewarned.

posted on Monday, June 13, 2005 3:49 PM

Feedback

# re: The Dark Side of Prefetching

We are running the web site and several others on three web servers using NLB.

We have found that when the Safari web browser connects to the site and uses prefetching or multiple-gets that the site displays errors and is not usable.

Do we not have NLB configured correctly? Is it a Mac issue? Will we have the same problems as more people use browsers with prefetching?

Thanks
6/28/2005 8:15 AM | Michelle

# re: The Dark Side of Prefetching

This is a relatively new practice over HTTP, though the concept is an old one, so you can imagine the Safari folks are still baking the goods to proper taste and function.

We have seen Safari flip out with various appliances out there...

- Port80
6/30/2005 10:52 AM | Jeremiah @ Port80

Post Comment

Title:  
Name:  
Url:  
Comment:  
Verify:
(Enter the word as it appears in the box above.)