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?
Geuis
source share