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

WordPress Trac noreply at wordpress.org
Wed Oct 31 21:39:24 UTC 2012


#14348: If it's a HEAD request, stop after the head!
-------------------------------------------------+-------------------------
 Reporter:  mitchoyoshitaka                      |       Owner:
     Type:  enhancement                          |  markjaquith
 Priority:  normal                               |      Status:  closed
Component:  Performance                          |   Milestone:  3.5
 Severity:  normal                               |     Version:  3.0
 Keywords:  has-patch 3.5-early needs-unit-      |  Resolution:  fixed
  tests commit                                   |
-------------------------------------------------+-------------------------
Changes (by markjaquith):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"22347"]:
 {{{
 #!CommitTicketReference repository="" revision="22347"
 When receiving a HEAD request, die() right before we start outputting
 content.

 * Content doesn't make sense for HEAD requests
 * Saves wear and tear on the server
 * Introduces a filter: exit_on_http_head (we send TRUE through it)

 fixes #14348. props mbijon, mitchoyoshitaka.
 }}}

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


More information about the wp-trac mailing list