[wp-trac] [WordPress Trac] #14348: If it's a HEAD request, stop after the head!
WordPress Trac
wp-trac at lists.automattic.com
Sat Oct 8 08:06:19 UTC 2011
#14348: If it's a HEAD request, stop after the head!
---------------------------------------------+------------------
Reporter: mitchoyoshitaka | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.3
Component: Performance | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch 3.3-early 2nd-opinion |
---------------------------------------------+------------------
Comment (by mbijon):
I like how simple Mitcho's method is. Just couldn't figure out how to tie
it to template_redirect without making that action a filter. I didn't know
how turning template_redirect into a filter would turn out, so this runs
just after.
I also added a new constant that would let someone disable this if-
required. Probably overkill.
Benefits: Maintains handling of canonical links, shortlinks, & old slugs.
Keeps possible SEO benefits of those ... which might be useful since
search spiders are heavy on HEAD use. This may not be worthwhile, wish I
knew more if redirecting a HEAD is useful.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14348#comment:22>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list