-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Not sure if this has been talked about in detail but with the
interest in dynamic html compression I will throw my two cents in.
And donations of this sort are *always* appreciated! Thanks! ;-)
Why use a cfx tag with coldfusion to compress
]]
Sent: Sunday, December 24, 2000 10:26 AM
To: CF-Talk
Subject: RE: [Compress HTML output]
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Not sure if this has been talked about in detail but with the
interest in dynamic html compression I will throw my two cents in.
And donations of this sort
-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
, 2000 10:26 AM
To: CF-Talk
Subject: RE: [Compress HTML output]
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Not sure if this has been talked about in detail but with the
interest in dynamic html compression I will throw my two cents in.
And donations of this sort are *always* appreciated
It's been running like a champ for us over the last three days on a
moderately high volume site. I can't imagine that the CFX overhead
would be that much higher than ISAPI overhead. CFX_GZip is a good
multi-threaded tag...
The overhead is most likely on the cache file writes and cache
10:26 AM
To: CF-Talk
Subject: RE: [Compress HTML output]
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Not sure if this has been talked about in detail but with the
interest in dynamic html compression I will throw my two cents in.
And donations of this sort are *always* appreciated
Ok I understand what has been done the
only thing I see as a problem is that
the tag is writing a file. Now without
locking or without a unique name
something bad is bound to happen. And
once you put locking on the writing of
files there is gonna be a slowdown.
The filename for the
The overhead is most likely on the cache file writes
and cache reads. You just gave me an idea for a work
around that could be better and faster than all the
options we have just discussed. With both ISAPI and
CFX, the system has to compress each and every single
page output as it is a
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Okay... I think the tag is done. I made a few more changes (see
below).
I also figured out how to automagically compress all the pages in
your site w/ one little change.
Here's what I did find:
In the Application.cfm, I put this code:
Not sure if this has been talked about in detail but with the interest in
dynamic html compression I will throw my two cents in.
Why use a cfx tag with coldfusion to compress html output when you can use
IIS 5.0's builtin gzip/deflate compressors? I bet the cfx/cf overhead is
much higher and not
!--- Serve the gzipped file delete ---
cfheader name="Content-Encoding" value="gzip"
cfcontent type="text/html"
file="#tmpFile#.gz"
deletefile="Yes"
GZipPage
CFELSE
CFINCLUDE TEMPLATE="myheavypage.cfm"
/CFIF
/CFDEFAULTCASE
-Original Message-
From: Peter Stolz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 19, 2000 8:30 PM
To: CF-Talk
Subject: RE: [Compress HTML output]
This is great!
One question though:
The serv
Wednesday, December 20, 2000 5:55 AM
To: CF-Talk
Subject: RE: [Compress HTML output]
Just check the cgi.http_accept_encoding for the existance of
"gzip"
CFDEFAULTCASE
CFIF
listcontainsnocase(cgi.http_accept_encoding,"gzip")!--- AND NOT
dev_server
;#GZippedFile#"
level="#Attributes.Level#"
cffile action="delete" file="#RawHTMLFile#"
!--- Setup the headers and write the mess back out to the client
w/CFCONTENT ---
cfset ThisTag.GeneratedContent = ""
cfheader name="Content-Encoding" value=&quo
I guess that would be CGI.HTTP_ACCEPT_ENCODING.
P.
-Original Message-
From: Peter Stolz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 19, 2000 10:30 PM
To: [EMAIL PROTECTED]
Subject: RE: [Compress HTML output]
This is great!
One question though:
The servlet version checks
compression is a web server issue NOT CF.
(www.remotecommunications.com)
mod_gzip for apache compresses both static and dynamic pages
IIS has compression built in
"Correa, Orlando (ITSC)" [EMAIL PROTECTED] wrote:
Anyone know if ColdFusion supports compressing HTML output on the fly
similar to
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
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
compression is a web server issue NOT CF.
That's true, but it doesn't mean you can't do it in CF...
Below is a custom tag that will do just that, provided you have
CFX_GZip installed (freely downloadable from the tag gallery).
I'm not sure
Cool... I'll check it out!
Thanks for the help.
-Original Message-
From: Zachary Bedell [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 18, 2000 2:20 PM
To: CF-Talk
Subject: RE: [Compress HTML output]
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
compression is a web server issue
19 matches
Mail list logo