[wp-trac] [WordPress Trac] #23021: Last-Modified header always set to 1970... when it is blank. Make browser cannot refresh cache.

WordPress Trac noreply at wordpress.org
Mon Dec 24 23:02:35 UTC 2012


#23021: Last-Modified header always set to 1970... when it is blank. Make browser
cannot refresh cache.
--------------------------+--------------------
 Reporter:  slene         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.5.1
Component:  General       |     Version:  3.5
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------

Comment (by azaozz):

 Yeah, what's the point in setting an empty `Last-Modified` header and then
 unsetting it. Also bear in mind that the web server sits between PHP and
 the client, so it can add/remove/change any header no matter what we do in
 PHP depending on its settings.

 Thinking we should remove `Last-Modified` from `wp_get_nocache_headers()`
 and leave it at that. If a plugin uses the filter to set it back, it may
 have a good reason to do this, we shouldn't limit/overwrite it.

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


More information about the wp-trac mailing list