views:

54

answers:

2

Hi!

I'd like to use gzip/deflate compression in my website on IIS7 basic shared hosting plan on GoDaddy server.

I've applied many solutions that I found in web but none resolved my problem. My pages are not being compressed at all, the size keeps the same after processing them.

I've tried to create a HttpHandler using DeflateStream but it works in my environment but not in GoDaddy server.

Also tried HttpModule and no success.

I checked web.config and did some tries using system.webServer configuration parameters but nothing happened.

Please, could you help me on this because GoDaddy support sent me an answer saying that GZIP is enabled and functioning properly and should request help from web.

I don't have access to IIS manager and no way to know if everything is installed correctly in their server.

I am able to just update web.config located on my root path.

I know that they have a poor support service but my client insists using them, so any idea would be very appreciated.

Thanks, Samuel

A: 

GoDaddy has just sent me another answer:

"My apologies, but neither Deflate nor GZip are supported on our Windows hosting plans. I apologize for the inconvenience and confusion."

Unfortunately, I'll have to look for another IIS7 host provider.

sabsfilho
Don't submit this as an answer, just edit the question as necessary.
Nik
I totally disagree. If I had gotten this answer before, I could have saved a lot of time trying to solve my question. So it was posted here as an answer (and indeed it is) to let someone else having the same problem not waste too much time as I did. If I put this answer in the question then it becomes useless.
sabsfilho
A: 

I used this web.config entries to enable gzip compression on a site on Godaddys shared web hosting account sucessfully:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <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>
</configuration>

Firebug reports:
Content-Encoding gzip

Have you tried this?

Magnus Johansson