[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
Thu Jan 3 15:55:18 UTC 2013


#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 andy):

 slene, could you try something? I noticed that our current strategy for
 deleting the Last-Modified header, sending it as an empty string, actually
 winds up as a header with trailing whitespace:
 {{{
 header("Last-Modified: ");
 }}}

 On your server that results in a Last-Modified value in 1970. What if you
 fix it so the last character in the string is the colon? Does it stop
 sending the Last-Modified header?

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


More information about the wp-trac mailing list