[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 Dec 20 13:58:54 UTC 2012


#23021: Last-Modified header always set to 1970... when it is blank. Make browser
cannot refresh cache.
-------------------------------+--------------------------
 Reporter:  slene              |       Type:  defect (bug)
   Status:  new                |   Priority:  normal
Milestone:  Awaiting Review    |  Component:  General
  Version:  3.5                |   Severity:  critical
 Keywords:  reporter-feedback  |
-------------------------------+--------------------------
 In [http://core.trac.wordpress.org/ticket/22258 22258], the Last-Modified
 header set blank when user login.

 A response with a blank Last-Modified header will be set to "Thu, 01 Jan
 1970 00:00:00 GMT" in some server. The browser will be always send a If-
 Modified-Since header "Thu, 01 Jan 1970 00:00:00 GMT". and the server
 response a 304 status code. Make the browser can not refresh cache.

 In php5.2 the Last-Modified header always blank. But php5.3 has
 header_remove remove it.
 The Last-Modified header should be remove form $headers array when it
 blank.

 sorry my bad english...

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


More information about the wp-trac mailing list