Re: PHP 4.0 Bug #8017: PHP ignores "If-Modified-Since" headers

From: Date: Wed, 29 Nov 2000 10:02:24 +0000
Subject: Re: PHP 4.0 Bug #8017: PHP ignores "If-Modified-Since" headers
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-39482@lists.php.net to get a copy of this message
JR>> I understand that I could use an ETAG or manually parse the JR>> If-Modified-Since header myself, but it seems like PHP should JR>> handle If-Modified-Since itself. After all, a very simple shell JR>> script like the one How exactly should PHP do that? How PHP knows if yo data that you prepare in the script (if it would be just a static page, you won't make it dynamic, right) has modified since given date? PHP has no prophecy extension to do such things. JR>> but that sent back a 304 code which included a Content-Type header -- a JR>> violation of the HTTP spec. (HTTP says 304 responses "must be returned JR>> without any message-body".) So do not sent the body. And Content-type is not a body - it's a header. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.106

« previous php.dev (#39482) next »