From: gunnar at mysql dot com Operating system: * PHP version: 4CVS-2005-06-23 (stable) PHP Bug Type: Feature/Change Request Bug description: PHP support for ETags in gzip output handler
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 bug report at http://bugs.php.net/?id=33453&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33453&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33453&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33453&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33453&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33453&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33453&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33453&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33453&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33453&r=support Expected behavior: http://bugs.php.net/fix.php?id=33453&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33453&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33453&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33453&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33453&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33453&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33453&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33453&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33453&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33453&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33453&r=mysqlcfg