2008/2/25 Yuan HOng <hongyuan1306@xxxxxxxxx>: > 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? [Warning: these are mostly informed guesses. I'm not a gzip expert.] Transfer- and Content-Encoding are indeed separate things. One does not imply the other. Apache is doing Transfer-Encoding, not Content-Encoding, so setting the latter header would be an error. The chunking is likely there so that apache can send the file as it is being compressed, rather than wait to compress the entire file before sending. I'm not sure why MSIE isn't caching the file, but I think both the Content-Encoding and the chunking are not the problem. You need to look elsewhere. Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx