Reputation: 24364
We have a couple of WCF (data) services. Because few of our clients are connecting to those services via a terrible network connection, we would like to assure that ALL traffic is compressed. So, we would like to compress each request and response to the server automatically.
We use IIS 8 right now and .NET 4+.
How can we do that in the most natural way? (Via XML configs etc.)
Upvotes: 4
Views: 10013
Reputation: 2646
.NET 4.5 introduces GZIP compression out of the box http://msdn.microsoft.com/en-us/library/aa751889.aspx
See the CompressionFormat values
Upvotes: 6