asp.net - json compression

Dynamic content compression does not work by default in asp.net for ‘application/json’ mime types, and given that we’re doing more mobile apps and client side data requests this can make quite a difference to application performance.  In flymapper my json response went from 0.4mb to 0.04mb.

http://www.hanselman.com/blog/EnablingDynamicCompressionGzipDeflateForWCFDataFeedsODataAndOtherCustomServicesInIIS7.aspx

Comments

re: asp.net - json compression

29 May 2013

Agreed. We saw about 80% reduction in the payload on the North York Moors web services. And now's the time to make a note that we had some trouble getting the compression to work on that server, and it turned out that their ISA server was stripping the Accept header from the request.  I diagnosed this using IIS Failed Request Tracing without which we would have been scuppered.

Find out more