-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Could you please explain how this compression works. 
> I keep seeing this as it is being compressed and 
> decompressed at the server, or is it being compressed 
> at the server and decompressed at the client.

After CF is done creating all of the various HTML that will be sent
out to clients, this tag grabs all the content and GZips it on the
server side.  The GZipped data is sent to the client where the client
automatically GUnzips it and displays it to the user normally.  The
human at the browser shouldn't even know anything unusual has
happened.  

As far as I know, all of the HTTP/1.1 browsers support gzip encoding.
 In any case, there's an Accept-Encoding header that browsers send if
they're capable of compression.  This tag checks to see if gzip is
one of the supported compression types.  If it is, the tag does its
thing.  If not, the HTML is sent uncompressed for clients that don't
know how to decompress it.

Using GZip level 9 compression, it's not unusual to see compression
ratios of 5 to 10 times.  Note that this does NOT work for any pages
that use CFCONTENT with a file attribute.  In those cases, the file
from CFCONTENT is sent out without any compression, and this tag
never even executes (since CF stops executing the page after the
CFCONTENT tag is done).

The web server based (as opposed to this CF Server based) solution is
a little different, tho it accomplishes the same thing.  I would
imagine that in those cases, CFCONTENT results would also be
compressed.  I still haven't hand a chance to play with that, but it
should be interesting.

Best regards,
Zac Bedell

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>
Comment: Please use PGP!

iQA/AwUBOkZBsKvhLS1aWPxeEQKlqgCg5QV9XWloUHiSxAgcdlnT0O4UY0YAoOqS
ZB/d+E31i/1KPu2pSgt5gK85
=XB79
-----END PGP SIGNATURE-----

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to