Knowing when prefetch is happening in firefox
题
Is there any way to see when prefetching is happening in Firefox? In Chrome there is an internal task manager which shows when websites is being pre-rendered in background is there anything similar for Firefox pre-fetching?
解决方案
One way to confirm that a resource has been prefetched by Firefox is to load the page that triggers the prefetching and then take a look at the contents of the browser cache by browsing to about:cache
and clicking on List Cache Entries
.
If you clear your cache just before you do that, it will be pretty obvious whether or not these resources were prefetched successfully.
其他提示
Firefox doesn't prefetch entire sites; it only prefetches particular resources that are declared as needing prefetching or are parsed as part of a page.
There is no way to see when the prefetching is happening, though one could be added. What's the use case?