Gzip compression in WebSpeed

mightyquin

New Member
Hi

Maybe someone could give me a little direction with the following; I want to compress my html pages that I construct in WebSpeed, using gzip compression (which as far as I know is recognised by most current browsers).

Is it just a case of setting a header called "Content-Encoding" with a value of "gzip" in the 'outputHeader' procedure ,e.g. output-http-header("Content-Encoding":U, "gzip":U). - or is there more to it?

TIA for your time!
 
I haven't compressed HTML output and I'm not familiar with how it is implemented with web viewers.

But I do know that merely changing the content-type in Webspeed will not change the output stream content. You WILL need to compress the content stream before outputting.

PDFinclude uses the Zlib compression library and you can pull the code from there to see how it compresses memptr or files (http://sourceforge.net/projects/pdf-inc)

Later,
Gordon
 
Back
Top