共享主机GoDaddy中的Gzip压缩问题 [英] Problem in Gzip compression in shared hosting GoDaddy

查看:206
本文介绍了共享主机GoDaddy中的Gzip压缩问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



i应用共享主机GoDaddy中的Gzip压缩(使用visual studio 2010 MVC4)。

这里是代码:

Hi,
i applied Gzip Compression in shared hosting GoDaddy(using visual studio 2010 MVC4).
here is code:

   <system.webServer>
  <httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files">
    <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll"/>
    <dynamicTypes>
      <add mimeType="text/*" enabled="true"/>
      <add mimeType="message/*" enabled="true"/>
      <add mimeType="application/javascript" enabled="true"/>
      <add mimeType="*/*" enabled="false"/>
    </dynamicTypes>
    <staticTypes>
      <add mimeType="text/*" enabled="true"/>
      <add mimeType="message/*" enabled="true"/>
      <add mimeType="application/javascript" enabled="true"/>
      <add mimeType="*/*" enabled="false"/>
    </staticTypes>
  </httpCompression>
  <urlCompression doStaticCompression="true" doDynamicCompression="true"/>
</system.webServer>





i只需点击链接 http://jeeshenlee.com/2010/08/01/how-to-gzip-on-asp-net-and-godaddy/ [ ^ ]

但我的网页中没有启用Gzip Compression。

我为使用共享主机Godaddy的另一个应用程序做了同样的事情,但是这里的Gzip压缩工作正常。

我只是按照上面的链接申请这两个应用程序? Gzip不适用于我的第一个应用程序

是否需要代表上述代码进行任何其他更改?



i使用此链接测试Gzip压缩 http://www.feedthebot.com/tools/gzip/ [ ^ ]



请帮帮我



i just follow the link http://jeeshenlee.com/2010/08/01/how-to-gzip-on-asp-net-and-godaddy/[^]
but Gzip Compression was not Enabled in my web pages.
i did same for another application using shared hosting Godaddy, but here Gzip Compression is working fine.
i just follow above link for both applications? Gzip is not applied for my First Application
is there any other changes need behalf of above code?

i used this link to test Gzip compression http://www.feedthebot.com/tools/gzip/[^]

Please help me

推荐答案

如果它在本地或其他网站上运行,那么您需要与GoDaddy支持人员讨论为什么它不在一个站点中工作。
If it works locally or on other sites, then you need to talk to GoDaddy support about why it's not working in the one site.


这篇关于共享主机GoDaddy中的Gzip压缩问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆