Click here to Skip to main content
14,970,456 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
i applied Gzip Compression in shared hosting GoDaddy(using visual studio 2010 MVC4).
here is code:
C#
   <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 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
Posted

1 solution

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.
   
Comments
Christian Graus 21-Jan-14 4:59am
   
Does that mean you provide the machine ? If so, you need to work out what's wrong with it. If not, I don't understand your point. GoDaddy is the host, they are the one to talk to if your code works locally and not on their machine.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900