php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #32014 Last-Modified is set to PHP file mtime
Submitted: 2005-02-18 02:00 UTC Modified: 2014-12-30 10:41 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: ceefour at gauldong dot net Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 5.0.3 OS: Irrelevant
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ceefour at gauldong dot net
New email:
PHP Version: OS:

 

 [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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-18 13:54 UTC] tony2001@php.net
This is expected behaviour, use header("Last-Modified: ..."); to change the default value of this header.
 [2005-02-19 17:28 UTC] 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.
 [2014-04-21 20:35 UTC] levim@php.net
-Status: Open +Status: Feedback -Package: Feature/Change Request +Package: *General Issues -Operating System: All +Operating System: Irrelevant
 [2014-04-21 20:35 UTC] levim@php.net
Is there still any interest in this?
 [2014-12-30 10:41 UTC] php-bugs at lists dot php dot net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 01 23:01:28 2024 UTC