Prefetching a link item does not work in Firefox 3.6

I am trying to test prefetch on Firefox 3.6. I use:

<link rel="prefetch" href="hst_galaxy.jpg"/> 

I do not see any requests in the Firebug Net panel. When I look at the Apache 2 logs, I only see a page request, after which nothing happens. I don't see the expected X-moz: prefetch header either. I also checked the packages using Wireshark and the prefetch header is not sent. I also used LiveHttpHeaders (FF extension) and again the prefetch header is not sent.

I checked my options: configuration options and network.prefetch-next mode enabled.

My test setup is on Mac OS 10.5.8. I am using a local Apache installation and running this from a test HTML file in the sites directory. I tried 3 different domain options:

  • local / cachetest
  • localhost.com/cachetest
  • www.randomurl.com/cachetest

localhost.com and randomurl.com are the domains that I configured in the / etc / hosts file. Test page available.

I visited this page, which says that the X-Moz header has been detected. http://browserspy.dk/prefetch.php Firefox says yes. Chrome / Safari says no, which is expected. Again, I cannot find the X-Moz header sent from Wireshark or LiveHttpHeaders. If you look at the source of this page, I see the correct <link rel="prefetch"> element.

I'm really not sure what I am missing. I tested this quite thoroughly and I don’t see how it works if I don’t find anything from Firefox and write nothing to Apache.

Does anyone have enlightenment that they can share?

+7
firefox prefetch gecko
source share
1 answer

There is an error in Firefox 3.6 that causes the prefetch to fail when the HTML5 parser is enabled. You can also try the meta syntax:

 <meta http-equiv="Link" content="</images/big.jpeg>; rel=prefetch"> 

To find out does not matter.

+2
source share

All Articles