"Matt Sergeant" <[EMAIL PROTECTED]> wrote:

> On Thu, 30 Nov 2000, Geoffrey Young wrote:
>
> > just beware that not all browsers that claim to accept gzip compression
> > actually do...
>
> No its the other way around. Not all browsers that can accept gzip send
> out Accept-Encoding: gzip. Notably early versions of IE4.

Right, and in response to Nigel's assumtion:

> ...I'm after something that zips on the server and
> decompresses transparently in Javascript across all browsers.

I believe you'd find that a lot more browsers will already transparently
decompress your server-gzipped content for you, than you will
JavaScript-enabled browsers that will successfully decompress the content
for you.

Another reason being that you can *detect* Accept-Encoding: gzip in a
browser's request headers (and even workaround the IE versions that dont
send this by looking at their USER_AGENT headers) and know beforehand
whether gzipped content can be decoded by that browser or not, while there
are no such early-warning systems to assure you that Javascript will be
enabled.  So, since most modern browsers *already* decompress gzip on the
fly, why would you want to add all the necessary JS code (to the
content-size) and then ask the JavaScript interpreter to do what the browser
already knows how to do?

-dave




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

Reply via email to