[wp-trac] [WordPress Trac] #14348: If it's a HEAD request, stop after the head!

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 19 02:31:28 UTC 2010


#14348: If it's a HEAD request, stop after the head!
-----------------------------+----------------------------------------------
 Reporter:  mitchoyoshitaka  |       Owner:                 
     Type:  defect (bug)     |      Status:  new            
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Performance      |     Version:  3.0            
 Severity:  normal           |    Keywords:  has-patch      
-----------------------------+----------------------------------------------
 Right now, as far as I can tell, when a HTTP HEAD request is made against
 WordPress, we go ahead and produce the entire page content, only to have
 it ignored. Attached is a patch to repair this.

 While not a huge issue, if you happen to receive lots of HEAD requests,
 this can make a large difference, as each HEAD request will be much faster
 and not waste precious resources.

 I have tried to ensure that this patch, by being in send_headers, will
 produce a HEAD response functionally identical to the response header of
 GET/POST requests, as it should be.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14348>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list