[wp-trac] [WordPress Trac] #44302: X-DNS-Prefetch-Control default setting prevents resource hints from working for dubious 'security reasons'

WordPress Trac noreply at wordpress.org
Tue Jun 19 14:13:30 UTC 2018


#44302: X-DNS-Prefetch-Control default setting prevents resource hints from working
for dubious 'security reasons'
-------------------------------------------------+-------------------------
 Reporter:  jonoaldersonwp                       |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Script Loader                        |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  2nd-opinion has-patch needs-unit-    |     Focuses:
  tests                                          |  performance
-------------------------------------------------+-------------------------
Changes (by swissspidy):

 * keywords:  2nd-opinion => 2nd-opinion has-patch needs-unit-tests


Comment:

 > We should detect whether resource hints are in play on a site, and if
 so, add a `X-DNS-Prefetch-Control: on` HTTP header.

 Makes sense I guess. [attachment:44302.diff] is an untested patch that
 goes into that direction.

 Also removes unnecessary "pr" and "as" attributes as per #42438.

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


More information about the wp-trac mailing list