You could write a CFX_J tag that would use the GZip compression and send it.
If you're using a Fusebox-style implementation, then you'd encapsulate
you're entire page in a custom tag (i.e.
<CF_HTMLCompress></CF_HTMLCompress>.) The custom CF tag would be something
like:
<CFIF ThisTag.ExecutionMode IS "END">
<CFSET strContent = Trim(ThisTag.GeneratedContent)>
<!---// send to Custom CFX_J tag now //--->
<!---// clear out the variable so no content is generated to the screen
//--->
<CFSET ThisTag.GeneratedContent = "">
</CFIF>
The basic concept is you'd be capturing all of your page output, sending it
to a CFX_J to generate and spit out the code. You might have to generate the
encrypting text and display it using <CFOUTPUT></CFOUTPUT> as well as change
the headers being generated with the <CFHEADER> tags, but I would think it's
possible.
-Dan
-----Original Message-----
From: Correa, Orlando (ITSC) [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 18, 2000 2:39 PM
To: CF-Talk
Subject: Compress HTML output
Anyone know if ColdFusion supports compressing HTML output on the fly
similar to Java? http://coldjava.hypermart.net/servlets/compress.htm
Other than using a servlet with ColdFusion?
Thanks,
Orlando Correa
IHS WebTeam
Web Applications Developer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists