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

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 24 17:09:11 UTC 2011


#14348: If it's a HEAD request, stop after the head!
-----------------------------+------------------
 Reporter:  mitchoyoshitaka  |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  3.2
Component:  Performance      |     Version:  3.0
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |
-----------------------------+------------------

Comment (by Otto42):

 Just thinking out loud here, but it seems to me that you should be able to
 stop the process at the point of template_include for a HEAD request.
 Everything that is going to set a header should have set it by this point,
 because once you include the template, you're in producing-output
 territory and headers can't be sent any more.

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


More information about the wp-trac mailing list