开发者

why does IIS7 static/dynamic compression only work for 200 responses?

Why is IIS7.5 only performing static and dynamic compres开发者_运维技巧sion when the response code is 200?

How do I make it compress all responses where the request had an appropriate Accept-Encoding header?

Thanks


I'm going to answer the 2nd part of your question, How do I make it compress all responses where the request had an appropriate Accept-Encoding header?

You do it with HTTPModules.

Here is one way using Ionic.Zlib. The module prefers to send RAW DEFLATE content because it is ALWAYS faster and ALWAYS smaller than than GZIP (why?).

A more complete solution is now hosted on github https://github.com/davidmurdoch/DEFLATE-Compression-for-IIS .

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜