[wp-meta] [Making WordPress.org] #1005: Content-Disposition header not always set when downloading latest.tar.gz

Making WordPress.org noreply at wordpress.org
Wed Apr 29 15:02:46 UTC 2015


#1005: Content-Disposition header not always set when downloading latest.tar.gz
-------------------+---------------------
Reporter:  JPry    |      Owner:
    Type:  defect  |     Status:  new
Priority:  normal  |  Component:  General
Keywords:          |
-------------------+---------------------
 When downloading (or just checking) the latest version of WordPress as a
 tar.gz file, sometimes the "Content-Disposition" header is sent, and
 sometimes it isn't. Here are two curl requests less than 10 seconds apart:


 {{{
 $ curl -I 'https://wordpress.org/latest.tar.gz'
 HTTP/1.1 200 OK
 Server: nginx
 Date: Wed, 29 Apr 2015 14:56:55 GMT
 Content-Type: application/octet-stream
 Content-Length: 6321767
 Connection: keep-alive
 Cache-control: private
 Content-Disposition: attachment; filename=wordpress-4.2.1.tar.gz
 Last-Modified: Mon, 27 Apr 2015 17:14:46 GMT
 X-Frame-Options: SAMEORIGIN
 X-nc: EXPIRED lax 249
 Accept-Ranges: bytes
 }}}

 {{{
 $ curl -I 'https://wordpress.org/latest.tar.gz'
 HTTP/1.1 200 OK
 Server: nginx
 Date: Wed, 29 Apr 2015 14:57:04 GMT
 Content-Type: application/octet-stream
 Content-Length: 6321767
 Connection: keep-alive
 Last-Modified: Mon, 27 Apr 2015 17:14:46 GMT
 X-Frame-Options: SAMEORIGIN
 X-nc: HIT lax 250
 Accept-Ranges: bytes
 }}}

 The "Content-Disposition" header is useful for automatic jobs that track
 what the latest version of WordPress is by using this link. For that
 reason, it would be nice to see the header consistently sent in the
 response.

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1005>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list