1

我想在我的网站内容上使用 GZIP 压缩...并且我已将我的代码放入PreRequestHandlerExecuteglobal.asax.cs 文件中。它适用于我的本地主机(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  
4

0 回答 0