#33453 [Opn->Asn]: PHP support for ETags in gzip output handler
| From: | derick@php.net | Date: | Thu, 23 Jun 2005 14:20:03 +0000 |
| Subject: | #33453 [Opn->Asn]: PHP support for ETags in gzip output handler | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-80911@lists.php.net to get a copy of this message | ||
ID: 33453
Updated by: derick@php.net
Reported By: gunnar at mysql dot com
-Status: Open
+Status: Assigned
Bug Type: Feature/Change Request
Operating System: *
PHP Version: 4CVS-2005-06-23 (stable)
-Assigned To:
+Assigned To: derick
Previous Comments:
------------------------------------------------------------------------
[2005-06-23 16:19:47] gunnar at mysql dot com
Description:
------------
Currently PHP doesn't check the ETag header at all, nor does it send it
out. I propose to add an ETag functionality that works like this:
1. in the output zlib handler check whether an ETag (If-None-Matched)
was set, and store it in the ZLIB globals.
2. when we're compressing the output we do an MD5 (or any other kind of
hashing function) over the compressed output.
3. If the hash is the same as the If-None-Matched header value that was
stored in step 1: just send a 304 Not Modified, if it's not the same
send the normal output but at an ETag header containing the hash value.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33453&edit=1