[wp-trac] [WordPress Trac] #14539: Cache-Control / Expires headers not applied to files in Multisite files location

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 24 19:30:27 UTC 2011


#14539: Cache-Control / Expires headers not applied to files in Multisite files
location
--------------------------+------------------------------
 Reporter:  spherical     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Multisite     |     Version:  3.0.1
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |
--------------------------+------------------------------

Comment (by newzede):

 I've experienced the same issue with WP 3.2.1 Multisites SubDirectory.
 Files from the '''files''' folder are sent with a Content-Length of 0.

 {{{
 curl -X GET -I http://www.example.com/wordpress/test/files/2011/10/ue.jpg
 HTTP/1.1 200 OK
 Date: Thu, 24 Nov 2011 19:25:43 GMT
 Server: Apache
 X-Powered-By: PHP/5.3.2-1ubuntu4.10
 Content-Length: 0
 Last-Modified: Wed, 19 Oct 2011 12:56:36 GMT
 ETag: "3b92507c5a7bc4a231512ad006dd2a10"
 Expires: Sun, 25 Jan 2015 05:12:23 GMT
 Connection: close
 Content-Type: image/jpeg
 }}}

 But all files in wp-content/themes work.

 {{{
  curl -X GET -I http://www.example.com/wordpress/test/wp-includes/images
 /admin-bar-sprite.png?d=11122010
 HTTP/1.1 200 OK
 Date: Thu, 24 Nov 2011 19:28:21 GMT
 Server: Apache
 Last-Modified: Mon, 13 Dec 2010 20:35:28 GMT
 ETag: "2922f7-2e1-49750a4fc0400;4b27fffad97c0"
 Accept-Ranges: bytes
 Content-Length: 737
 Connection: close
 Content-Type: image/png
 }}}

 Anyone found a solution?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14539#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list