php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #33453 PHP support for ETags in gzip output handler
Submitted: 2005-06-23 16:19 UTC Modified: 2008-01-31 20:31 UTC
Votes:4
Avg. Score:4.8 ± 0.4
Reproduced:0 of 0 (0.0%)
From: gunnar at mysql dot com Assigned: derick (profile)
Status: Wont fix Package: Feature/Change Request
PHP Version: 4CVS-2005-06-23 (stable) OS: *
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-06-23 16:19 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 04:01:30 2024 UTC