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

From: Date: Wed, 29 Nov 2000 16:34:47 +0000
Subject: Re: PHP 4.0 Bug #8017: PHP ignores "If-Modified-Since" headers
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-39599@lists.php.net to get a copy of this message
> The PHP engine could compare the If-Modified-Since header against the > Last-Modified header that the script sends out. In pseudo-code, it would > work something like this: > > if (php script sent a Last-Modified header) { > if (If-Modified-Since exists && Last-Modified > If-Modified-Since) { > send out a 304 code; Sorry, slight correction here. That should be: if (If-Modified-Since exists && Last-Modified <= If-Modified-Since) { send out a 304 code; Jordan Russell

« previous php.dev (#39599) next »