Thursday, June 16, 2005

Accept-Encoding :gzip to compress information in http

Information send by the server can be zipped to reduce size; Server should support compression and browser should support decompression. Most browsers do support this feature using the Accept-Encoding :gzip. Every server should have a setting that enables/disables this feature.

For IIS


From w3

The Accept-Encoding request-header field is similar to Accept, but restricts the content-codings (section 3.5) that are acceptable in the response.

       Accept-Encoding  = "Accept-Encoding" ":"
                          1#( codings [ ";" "q" "=" qvalue ] )
codings = ( content-coding | "*" )

Examples of its use are:

       Accept-Encoding: compress, gzip
Accept-Encoding:
Accept-Encoding: *
Accept-Encoding: compress;q=0.5, gzip;q=1.0
Accept-Encoding: gzip;q=1.0, identity; q=0.5, *;q=0

0 Comments:

Post a Comment

<< Home