Req #32014 [Fbk->NoF]: Last-Modified is set to PHP file mtime

From: Date: Tue, 30 Dec 2014 10:41:28 +0000
Subject: Req #32014 [Fbk->NoF]: Last-Modified is set to PHP file mtime
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189380@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=32014&edit=1 ID: 32014 Updated by: php-bugs@lists.php.net Reported by: ceefour at gauldong dot net Summary: Last-Modified is set to PHP file mtime -Status: Feedback +Status: No Feedback Type: Feature/Change Request Package: *General Issues Operating System: Irrelevant PHP Version: 5.0.3 Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2014-04-21 20:35:03] levim@php.net Is there still any interest in this? ------------------------------------------------------------------------ [2005-02-19 17:28:43] rasmus@php.net It may be expected behaviour, but I would tend to agree with the suggestion that this is a bad idea. Moving to a feature/change request. ------------------------------------------------------------------------ [2005-02-18 13:54:13] tony2001@php.net This is expected behaviour, use header("Last-Modified: ..."); to change the default value of this header. ------------------------------------------------------------------------ [2005-02-18 02:00:43] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=32014&edit=1

« previous php.bugs (#189380) next »