PHP 4.0 Bug #10070: incorrect ob_gzhandler implementation
| From: | mnot at akamai dot com | Date: | Fri, 30 Mar 2001 02:21:53 +0000 |
| Subject: | PHP 4.0 Bug #10070: incorrect ob_gzhandler implementation | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-50323@lists.php.net to get a copy of this message | ||
From: mnot@akamai.com
Operating system:
PHP version: 4.0 Latest CVS (29/03/2001)
PHP Bug Type: Zlib Related
Bug description: incorrect ob_gzhandler implementation
ob_gzhandler doesn't appear to set a Vary: header on
responses, which means that proxy caches could store a
compressed version of the resource and serve it to clients
which can't handle the encoding. This is very difficult to
debug for Web sites, and should be fixed ASAP.
For an example of the proper headers to send, see the PHP at:
http://www.mnot.net/cgi_buffer/
Also, in my experience, some versions of MSIE don't handle
deflate compession correctly, even though their
Accept-Encoding claims they do. It might be better to avoid
deflate altogether, as gzip support is pretty much the
unwritten standard.
Cheers,
--
Edit Bug report at: http://bugs.php.net/?id=10070&edit=1