httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuan HOng" <>
Subject [users@httpd] Problem with mod_deflate and IE6 javascript caching
Date Mon, 25 Feb 2008 06:26:48 GMT
Hi, list,

I have a large javascript file which I want to send to IE6 gziped and
for IE6 to cache.

I set the following derective in the configuration file:

AddOutputFilterByType DEFLATE application/x-javascript

The result is but that IE6 doesn't cache the javascript.

Looking into the response headers, I found that apache is sending
Transfer-Encoding: chunked together with Vary: Accept-Encoding, but
without Content-Encoding: gzip

I think that the missing Content-Encoding: gzip might have to do with
IE6 not caching the Javascript. Does anybody have an idea about this?

By the way, I have read that Content-Encoding and Transfer-Encoding
are separate things, so I am expecting Apache to send
Transfer-Encoding together with Content-Encoding. Why is
Content-Encoding dropped?

Also, the 'chunked' transfer encoding is supposed to be used for
dynamically generated content. But my javascript file is a static one.
When does apache decide to use 'chunked' encoding? Can I force Apache
not to use 'chunked' encoding for gziped content?

Best Regards,

Hong Yuan

View raw message