How to enable IIS compression for WCF services?

后端 未结 4 1281
南笙
南笙 2020-12-09 21:02

I currently use a custom gzip encoder for my WCF service. I want to replace it with the built-in IIS 7 compression if that is possible. I can\'t find info online on how to t

4条回答
  •  被撕碎了的回忆
    2020-12-09 21:48

    It seems you can enable Dynamic Compression in IIS via the GUI or CLI.

    This article shows you both ways:

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

    I found the GUI way easy. The article shows you how to confirm it is working with Fiddler.

    Cheers!

提交回复
热议问题