HTTP Compression

Discussion in 'Windows / IIS' started by WillStott, Jan 5, 2009.

  1. Does DiscountASP.net support http compression? It would seem that ISAPI filter needs installing on the server. What thoughts do people have about this technology?


    http://www.http-compression.com

    Will
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    we do not support HTTP Compression on IIS6. I believe you can enable it on IIS 7.
     
  3. Integrated IIS7 http compression is working on the DASP servers. I've enabled it at our application level web.config with:

    <system.webServer>
    ...
    <urlCompression doStaticCompression='true' dynamicCompressionBeforeCache='true' doDynamicCompression='true' />
    ...
    </system.webServer>

    It seems that IIS favours GZip over deflate, which is a bit of shame because deflate can provide better compression and reportedly 'inflates' more efficiently on the client. Still GZip is currently providing our pages / css / js with approximately a 70% compression ratio which is still decent.

    There is an alternative to using the IIS integrated compression if you're able to do .NET development. Doing yourself means that you have complete control over what is compressed and you can also take advantage of caching the compressed resources. Rick Strahls very useful blog on West Wind is where I learnt how to do this : www.west-wind.com/Weblog/posts/10564.aspx
     
  4. JSON post data not being compressed

    Putting this in the web config seems to work for my html content, but per this link, dynamic compression has to go in the Windows\System32\inetsrv\config\applicationHost.config file.

    I don't see my JSON data being compressed -- is it possible for this to happen with discountasp.net?
     
  5. This link describes how to setup IIS7 to compress JSON posts -- I used the above to add the gzipping to my html and static files, but dynamic posting has to be set via a file on the server itself and not via web.config, or so I'm understanding it based on this post -- can discountasp.net enable this setting for its users? I'm sure it would be a big help if we could send this data back and forth zipped.
     
  6. Bruce

    Bruce DiscountASP.NET Staff

    Compression is delegated. You can put that setting in your web.config.
     
  7. Just to be clear DASP do not support DYNAMIC http compression.

    We read this post played around for it for a bit with everythig properly configured and it just wouldn't work. No errors just no DYNAMIC http compression.

    Email support and they said they do not support DYNAMIC http compression.
    Static compression works fine. I can see why. Frankly I would have been surprised if they did in a shared hosting environment. But up till now it wasn't perfectly clear [to us at least] whether or not they did.
     
  8. Joseph Jun

    Joseph Jun DiscountASP.NET Staff

    Sorry for any confusion and I thought I'd chime in on this post as well.

    Even though the servers for our Windows Server 2008 servers are running a pair of Xeon processors with Hyper-Threading enabled, it's just not enough raw processing power to have all accounts on a particular server or even just some accounts on a particular server perform at optimum levels because of the additional CPU load that's imposed by dynamic content compression.

    It's a really cool feature that's been introduced that would save a considerable amount of bandwidth over time but at this time it's more reserved and better suited for enterprise, dedicated hosting or virtual private server environments.
     

Share This Page