IIS 10 Created (201) Response Compression

George Aggrey 21 Reputation points

I have found that IIS 10 is not compressing responses with a 201 status code. Has anyone found a solution for this? This document seems to suggest it was a feature of IIS 6/7.5: troubleshooting-iis-compression-issues-in-iis6-iis7x

I want to avoid using asp.net core compression middleware.

Internet Information Services
0 comments No comments
{count} votes

Accepted answer
  1. Bruce Zhang-MSFT 3,676 Reputation points

    Hi @George Aggrey ,

    There is not much difference between IIS10 and IIS7.5 in terms of overall functions and architecture. If you look at the updates in IIS8 and IIS10, you will find that there are no compressed updates involved.

    So the compression module in IIS10 still follows the description in the document. It will only compress responses whose status code is 200. This is by design of IIS. Unless you write an custom module to set compression for 201 response.

    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our  documentation  to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,
    Bruce Zhang

0 additional answers

Sort by: Most helpful