GZIP压缩在本地主机上运行,​​但在IIS 7.5主机上不起作用

时间:2012-09-21 21:00:00

标签: asp.net compression iis-7.5 gzip

我想在我的网站内容上使用GZIP压缩...我已将我的代码放入global.asax.cs文件中的PreRequestHandlerExecute。 它可以在我的本地主机(IIS,ASP.NET)上运行,但当我将它上传到远程主机(我无法访问它的配置文件)时,当我看到提琴手的结果时,没有完全压缩。以下是请求和响应的示例:

请求标题:

GET **********/script/iscroll.js HTTP/1.1  
Host: *****  
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:15.0) Gecko/20100101 Firefox/15.0.1  
Accept: */*  
Accept-Language: en-us,en;q=0.5  
Accept-Encoding: gzip, deflate  
Connection: keep-alive  
Referer: ********************  
Cookie: ASP.NET_SessionId=0w3uurg51f2mfdjhexzoegvq`  

响应标题:

HTTP/1.1 200 OK  
Content-Type: application/x-javascript  
Last-Modified: Thu, 20 Sep 2012 06:18:19 GMT  
Accept-Ranges: bytes  
ETag: "46857abaf796cd1:0"  
Server: Microsoft-IIS/7.5  
X-Powered-By: ASP.NET  
X-Powered-By-Plesk: PleskWin  
Date: Fri, 21 Sep 2012 20:46:00 GMT  
Content-Length: 34777  

0 个答案:

没有答案