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

From: Date: Wed, 29 Nov 2000 13:44:49 +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-39573@lists.php.net to get a copy of this message
On Wed, 29 Nov 2000, Stanislav Malyshev wrote: >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. Hmm...as this isn't any bug, could you please close the bug report? --Jani

« previous php.dev (#39573) next »