[EMAIL PROTECTED] (Nigel Hamilton) wrote:
>       I'm trying to reduce the amount of data sent from server to
>browser by using compression ---> hopefully accelerating the time to
>serve a page.
>
>       Does anyone know of a mod_perl module that compresses HTML and a
>companion Javascript procedure that decompresses the data on the
>client-side?
>
>       I know there are Gzip modules that zip files on the way back to
>the browser ... but I'm after something that zips on the server and  
>decompresses transparently in Javascript across all browsers. Ideally I
>want to do: document.write(uncompressed-contents) in Javascript on the
>client-side.

I think you've got a slight misconception about how gzip HTTP
compression works.  It's perfectly transparent, in that browsers that
support compression will decompress the file automatically, and the user
will never know that the page was compressed in the first place.  That's
much smoother than the javascript decompression you propose, which I
can't help thinking will turn into a real headache, perhaps even a
nightmare.

In particular, it seems like you think that users have to manually
decompress gzipped content, but that's not the case.  Just thought I'd
state it if that was the confusion.

mod_gzip, Apache::Compress, or Apache::Gzip are solutions here.


  -------------------                            -------------------
  Ken Williams                             Last Bastion of Euclidity
  [EMAIL PROTECTED]                            The Math Forum

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to