IIS 10 Created (201) Response Compression

George Aggrey 21 Reputation points
2021-09-05T14:38:41.153+00:00

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,751 Reputation points
    2021-09-06T02:52:54.297+00:00

    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.