[wp-trac] [WordPress Trac] #34912: wp-admin/load-styles.php not serving multiple assets over HTTPS

WordPress Trac noreply at wordpress.org
Wed Dec 9 09:15:08 UTC 2015


#34912: wp-admin/load-styles.php not serving multiple assets over HTTPS
---------------------------+------------------------------
 Reporter:  ElastisysLars  |       Owner:
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Script Loader  |     Version:
 Severity:  normal         |  Resolution:  invalid
 Keywords:                 |     Focuses:
---------------------------+------------------------------
Changes (by ElastisysLars):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 I have successfully traced the error to my nginx reverse proxy settings.

 To others who experience this type of behavior, the solution is that
 WordPress '''assumes''' that HTTP 1.1 will be used in the `wp_admin/load-
 styles.php` logic of building the response. It does not set a HTTP
 Content-Length header, which is interpreted differently by HTTP 1.0 and
 HTTP 1.1. What this means in particular is that nginx reverse proxy must
 be set to use HTTP 1.1, using the following directive in your `location`
 definition:

 {{{
     proxy_http_version 1.1;
 }}}

 You can consult
 [http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_http_version
 the nginx documentation] for the meaning of this directive.

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


More information about the wp-trac mailing list