IIS6压缩仅适用于HTTPS

时间:2013-09-26 09:33:31

标签: asp.net http https iis-6 gzip

我们最近在IIS6中为我们的ASP.NET应用程序启用了压缩(大约2.0 4.0),并且发现只有在通过HTTPS发出请求时才会执行GZip。

我们的Web场中的所有服务器上都会出现此问题。我还检查过,无论使用何种浏览器,都存在同样的问题。

我已经搜索了一个多小时但找不到任何关于此的内容,所以希望有人可以提供帮助。示例如下

HTTP请求:

GET /about.htm HTTP/1.1
Host: www.website.com
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)     Chrome/29.0.1547.76 Safari/537.36
Referer: http://www.google.co.uk
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8

HTTP响应(不是GZipping):

HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 65568
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Thu, 26 Sep 2013 09:26:46 GMT

HTTPS请求:

GET /about.htm HTTP/1.1
Host: www.website.com
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8

HTTPS响应(GZip工作):

HTTP/1.1 200 OK
Cache-Control: private
Date: Thu, 26 Sep 2013 09:29:39 GMT
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Content-Encoding: gzip
Vary: Accept-Encoding
Transfer-Encoding: chunked

更新

我在IIS中运行了请求跟踪 - 违规请求具有以下行

IISCompression   DYNAMIC_COMPRESSION_NOT_SUCCESS     "NO_MATCHING_SCHEME"

0 个答案:

没有答案
相关问题