Re: PHP 4.0 Bug #8017: PHP ignores "If-Modified-Since" headers
| From: | Joey Smith | Date: | Fri, 01 Dec 2000 16:42:45 +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-39794@lists.php.net to get a copy of this message | ||
Jordan Russell wrote:
The reason why I think it should be built-in is because parsing If-Modified-Since is complicated -- the HTTP spec allows a number of different date formats. I think it's unreasonable to expect every PHP develeper to write his own If-Modified-Since parser (or obtain a third-party one) if they want to use Last-Modified-style caching. Not only that, it would run a whole lot faster in native C. I've produced a working patch for PHP 4.0.3pl1 which I'll post shortly... Jordan RussellI don't really see where this is a big enough speed hit to justify writing it in C, but maybe I'm wrong. I do agree, however, that it's unreasonable to expect every developer to know HTTP well enough to be able to parse all the formats. This sounds like an excellent case for a PEAR class, to me...