3

I have a fresh 3.5.1 installation - default theme, no plugins.

Running HTTPFox on Firefox shows that after a GET-request of any given page in Wordpress has finished loading, a GET-request is sent for the rel='next' page:

<link rel='next' title='Next Page Title' href='http://www.domain.com/next-page/' />

and fails:

00:10:04.992    0.556   698 245 GET (Aborted)   text/html (NS_BINDING_ABORTED)  http://www.domain.com/next-page/

My question - is this on purpose? Is wordpress doing some kind of preloading? I'd like to understand why it is doing this.

1 Answer 1

4

This isn’t WordPress, it is Firefox’ Link prefetching. You can turn it off.

Serve those requests nothing:

# Serve Firefox' prefetch requests an empty page
RewriteCond %{HTTP_X_MOZ} ^prefetch$
RewriteRule ^ - [L,R=204]
2
  • Oh wow. Thank you! For anyone wanting to prevent prefetching for your wordpress site, the following code removes the rel="next" link: remove_action('wp_head', 'adjacent_posts_rel_link_wp_head'); Commented Jan 29, 2013 at 18:18
  • Actually, the edit from toscho is a better solution. Commented Jan 29, 2013 at 18:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.