#32014 [Opn->Bgs]: Last-Modified is set to PHP file mtime

From: Date: Fri, 18 Feb 2005 12:54:14 +0000
Subject: #32014 [Opn->Bgs]: Last-Modified is set to PHP file mtime
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-74268@lists.php.net to get a copy of this message
 ID:               32014
 Updated by:       tony2001@php.net
 Reported By:      ceefour at gauldong dot net
-Status:           Open
+Status:           Bogus
 Bug Type:         Session related
 Operating System: All
 PHP Version:      5.0.3
 New Comment:

This is expected behaviour, use header("Last-Modified: ..."); to change
the default value of this header.


Previous Comments:
------------------------------------------------------------------------

[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 http://bugs.php.net/?id=32014&edit=1


Thread (5 messages)

« previous php.bugs (#74268) next »