[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
Fri Jan 4 09:13:21 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 nacin):
[attachment:23021.4.diff]'s $nocache_headers variable causes a legitimate
Last-Modified header to be removed from feeds, when the user is logged in.
Because it is a feed, I imagine always having a header here is by design,
even in a no-cache situation. I could see arguments either way, though.
$nocache_headers is really just an enhancement to further avoid tampering
by plugins, but we should probably avoid going near that in a point
release. Also, since in PHP 5.2 we'd now be looping through headers_list()
on every request (as we normally ''don't'' send Last-Modified, not just in
no-cache situations), I adopted the `false` from wp_header(). See
[attachment:23021.6.diff].
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23021#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list