#26553 [Opn->Bgs]: Content-Type: text/html in 304 response header.
| From: | iliaa@php.net | Date: | Mon, 08 Dec 2003 13:10:38 +0000 |
| Subject: | #26553 [Opn->Bgs]: Content-Type: text/html in 304 response header. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-51807@lists.php.net to get a copy of this message | ||
ID: 26553
Updated by: iliaa@php.net
Reported By: linke at paralight dot ru
-Status: Open
+Status: Bogus
Bug Type: *Web Server problem
Operating System: FreeBSD / any?
PHP Version: 4.3.4
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
not a bug.
Previous Comments:
------------------------------------------------------------------------
[2003-12-08 08:04:03] linke at paralight dot ru
Description:
------------
In 'HTTP/1.1 304 Not Modified' response from PHP script where is a
'Content-Type: text/html'.
rfc2616 tell us:
"The 304 response MUST NOT contain a message-body, and thus is always
terminated by the first empty line after the header fields."
I have read the discussioan about simular Bug #3299, but I think Apache
response is correct rather than PHP.
Reproduce code:
---------------
<?
header('HTTP/1.1 304 Not Modified');
header("Cache-Control: max-age=".($expire-$last_modified));
header("Expires: ".gmdate('D, d M Y H:i:s',$expire)." GMT");
?>
Expected result:
----------------
HTTP/1.1 304 Not Modified
Date: Mon, 08 Dec 2003 12:03:27 GMT
Server: Apache/1.3.28 (Unix) PHP/4.3.4
Connection: close
ETag: "49621b-10ca-3fd43c1b"
Expires: Tue, 07 Dec 2004 12:03:27 GMT
Cache-Control: max-age=31536000
(apache response from request to plain html file, without PHP).
Actual result:
--------------
HTTP/1.1 304 Not Modified
Date: Mon, 08 Dec 2003 12:15:05 GMT
Server: Apache/1.3.28 (Unix) PHP/4.3.4
X-Powered-By: PHP/4.3.4
Cache-Control: max-age=31536000
Expires: Tue, 07 Dec 2004 08:53:47 GMT
Connection: close
Content-Type: text/html
(PHP response)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26553&edit=1