开发者

Any reasons not to gzip documents delivered via HTTP?

I remember someone telling me that gzipped content is not ca开发者_如何学Pythonched on some browsers? is this true?

Are there any other reasons why I shouldn't gzip my content (pages, javascript and css files) with htaccess?


The other reason is it obviously increase CPU load, but whether this is a problem depends on your content type and your traffic.

If you are going to use GZip from with .htaccess, be sure to wrap it in a condition whereby it only executed of the mod_gzip module exists, this will make the site / app more portable if moving it to another server.

If you opt to use .htaccess GZipped content the browser will receive compressed content if it supports it, or received the normal uncompressed version if it doesn't


If you are delivering mostly .gz files, then obviously you don't want to gzip them. Otherwise it's probably a good idea, especially for cache-able content. I have never heard of caches not working with gzipped content.


I think you need to handle both GZipped and not gzipped data since IE6 and GZipping do not live together nicely.

Otherwise I cant think of an issue


If you need to stream the content of a page, or want to use Response.Flush, then you can't use compression/gzip.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜