Re: Status of HTTP_Cache
| From: | Lukas Smith | Date: | Fri, 15 Apr 2005 21:22:37 +0000 |
| Subject: | Re: Status of HTTP_Cache | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18772@lists.php.net to get a copy of this message | ||
Torsten Roehr wrote:
Hi PEARs, what happened to Stephan Schmidt's proposed HTTP_Cache package? The proposal has been deleted and I remember that a few months back (Dec 04) there was a discussion about integrating its functionality into either HTPP_Header or HTTP_Download. But looking at the changelog of both packages I don't see any info on including HTTP_Cache's features. So what's the status here? Is the package available somewhere else?doesnt it boil down to this? $etag = '"'.md5($final_output).'"'; if (isset($_SERVER['HTTP_IF_NONE_MATCH']) && $_SERVER['HTTP_IF_NONE_MATCH'] == $etag ) { header('HTTP/1.0 304 Not Modified'); return; } header('ETag: '.$etag); header('Cache-Control: public'); header('Pragma: cache') regards, Lukas