IIS 7 Dynamic Compression is not consistently compressing responses

249 Views Asked by At

I have got Dynamic Compression enabled on IIS for all content types.

Requests to my WCF service are sending the following header:

Accept-Encoding: gzip, deflate

And responses from IIS are nearly always being compressed and show the following content in the header:

Content-Type: application/soap+xml; charset=utf-8 Content-Encoding: gzip Vary: Accept-Encoding

However, when the response to a request is large e.g. 14Mb, I'm finding that the the request is not being compressed. The request header includes the accept-encoding statement and the content type is the same, however, the response does not include the content-encoding or vary headers.

Is there a limit to the size of IIS request that can be compressed? My application is working correctly but performing slowly when the responses are big as a result of this problem.

0

There are 0 best solutions below