Google Groups Home
Help | Sign in
Message from discussion Compression in browsers
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Mark Adler  
View profile
 More options Jul 4 2003, 12:03 pm
Newsgroups: comp.compression
From: mad...@alumni.caltech.edu (Mark Adler)
Date: 4 Jul 2003 09:03:40 -0700
Local: Fri, Jul 4 2003 12:03 pm
Subject: Re: Compression in browsers

Diwakar Shetty <diwakar.she...@oracle.com> wrote in message <news:3F02934B.7D878980@oracle.com>...
> What are the possible values in "accept-encoding" which can be sent by various browsers
> with different versions.

RFC 2616, HTTP/1.1, specifies "gzip", "deflate", and "compress" (and
"identity" for no change).  Those are respectively the formats
generated by gzip, zlib's deflate() function called to include the
zlib header and trailer, and the Unix compress command.  The first two
are defined by RFC's 1952 and 1950.  Both of those RFC's reference the
same compressed data format, deflate, defined in RFC 1951.  RFC 1950
and 1952 put different wrappers around the compressed data.

The only one that appears to be reliably and correctly implemented in
browsers is "gzip".  Unix compress is usually inferior in compression
and has the potential to significantly expand incompressible data,
which is probably why it is not supported by most browsers.  "deflate"
seems to have been misinterpreted by some browser implementations to
mean the deflate format (RFC 1951) without the zlib header and trailer
(RFC 1950).  So while this is precisely the sort of application that
the zlib format was intended for, confusion about the word "deflate"
has rendered it unreliable.  This is despite the fact that RFC 2616
explicitly references RFC 1950 for the "deflate" content encoding.

So you should simply use the "gzip" encoding for HTTP.

mark


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google