[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:30:24 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):

 In 23021-3.patch:

 - Remove `Last-Modified` header from wp_get_nocache_headers(). That gives
 a chance for a plugin to add it back if needed.
 - Remove the test `if ( empty( $headers['Last-Modified'] ) ...` in
 WP::send_headers() in class-wp.php. That header would not be set if the
 user is logged in, on query error or feed. If not, it's
 [http://core.trac.wordpress.org/browser/trunk/wp-includes/class-
 wp.php#L323 always set].

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


More information about the wp-trac mailing list