JSON webservice response compression in IIS 7
        Posted  
        
            by denisioru
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by denisioru
        
        
        
        Published on 2010-03-20T06:34:48Z
        Indexed on 
            2010/03/20
            6:41 UTC
        
        
        Read the original article
        Hit count: 477
        
Hello! I have trouble with JSON response compression. I look to response headers after uploading website to production server (Windows 2008, IIS 7) and found uncompressed response. Turning on "Enabled static compression" and ""Enable dynamic compression" in IIS control panel does not effect. ASPX pages was responsed gzipped, but webservice response uncompressed.
I looked to google, but no answer found about this trouble. Also, I try this http://stackoverflow.com/questions/2405595/json-ihttpmodule-compression way (and adding to web.config this module) - but this source is excellent working at development machine with ASP.NET development server (and have seven times response size reduced) and totally ignored at IIS7.
How I can apply gzip compression to json responses from my webservice? Thanks.
PS .NET 3.5
© Stack Overflow or respective owner