[wp-trac] [WordPress Trac] #37240: Remove schemes from dns-prefetch resource hint outputs

WordPress Trac noreply at wordpress.org
Wed Jul 6 06:23:06 UTC 2016


#37240: Remove schemes from dns-prefetch resource hint outputs
--------------------------------------+-----------------------------
 Reporter:  niallkennedy              |       Owner:  voldemortensen
     Type:  defect (bug)              |      Status:  reviewing
 Priority:  normal                    |   Milestone:  4.6
Component:  General                   |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  performance
--------------------------------------+-----------------------------

Comment (by voldemortensen):

 My initial thoughts are this is a great improvement. But then I thought
 some more. I don't know how browsers are implementing this. If I were
 implementing dns-prefetch, I'd ignore the scheme altogether because the
 scheme has no effect on DNS. However, I didn't do it, so I don't know.
 It's probably more safe to err on the side of caution here to avoid
 unnecessary CPU usage/bandwidth/etc. So +1 for dns-prefetching only.

 Theoretically:
 {{{#!php
 <link rel="prerender" href="http://site.com/post-name">
 <link rel="prerender" href="https://site.com/post-name">
 }}}

 can be different, so we should probably leave those alone unless we want
 to try and keep people from doing unintended things.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37240#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list