Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

up vote 4 down vote accepted

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]
share|improve this answer
    
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'); –  Nicholas Pickering Jan 29 '13 at 18:18
    
Actually, the edit from toscho is a better solution. –  Nicholas Pickering Jan 29 '13 at 18:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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