minFileSizeForComp is not working for dynamic compression in IIS10

Kaumudi Rawat 0 Reputation points
2024-01-27T05:27:12.2933333+00:00

I am trying to change the minFileSizeForComp from the default of 2700 bytes to 860 bytes. But it is not working for dynamic compression gzip/deflate.

I am able to compress API response <2700 bytes as well. IIS httpcompression "minFileSizeForComp" property does not seems to be working for dynamic compression.

Is there any way to make it work at server/site level for IIS10 . Appreciate the help!

Windows development | Internet Information Services
Developer technologies | .NET | Other
Developer technologies | ASP.NET | Other
Community Center | Not monitored
{count} votes

1 answer

Sort by: Most helpful
  1. Sam Wu-MSFT 7,561 Reputation points Microsoft External Staff
    2024-01-30T06:34:15.4766667+00:00

    @Kaumudi Rawat An HTTP client must initiate communication for compressed content by sending the appropriate HTTP Accept-encoding header. If a client is not capable of HTTP compression, it will not pass that header and IIS will always return uncompressed content, so please check how good your Accept-Encoding is working on the site.

    To check Accept-Encoding in action go to Inspect Element -> Network check the request header for Accept-Encoding


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 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.


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.