|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2005-02-18 02:00 UTC] ceefour at gauldong dot net
 Description:
------------
When using 'public' or 'private' cache limiter (maybe other cache limiters, except 'nocache'), PHP will output the PHP script's mtime as the Last-Modified header. While this is okay for some purposes, the dynamic nature of PHP scripts make this a bad "feature".
It's possible to circumvent this problem by manually sending a header() but IMHO this should never be necessary.
My proposal would be to change these affected limiters to either not output Last-Modified or output a current time Last-Modified header using the format date('D, d M Y H:i:s O'). Note that date('r') doesn't work in some cases.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 16:00:01 2025 UTC | 
This is expected behaviour, use header("Last-Modified: ..."); to change the default value of this header.