GZIP not happening consistenly

Pratik Vaidya 1 Reputation point
2022-06-16T08:09:56.647+00:00

Hi, We are seeing an issue with Gzip not happening consistently with one of our websites. We have enabled static compression on the IIS.

The content encoding appears inconsistently say 4 out of 10 times if I hit the website URL. Can you please let me know why this behavior is seen?

https://www.devry.edu/

211947-header-missing.jpg
212001-header-present.jpg

Internet Information Services
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce Zhang-MSFT 3,736 Reputation points
    2022-06-17T01:51:59.45+00:00

    Hi @Pratik Vaidya ,

    Please check your IIS Compression module, make sure that dynamic content and static content all enabled.

    If you enable failed request tracing to check compression, you will find that static compression won't work when a static file didnot get hit frequently.
    212188-1.png

    If you rely this request doezens times, the header will appear.

    Another thing, there's a limit for minimum file size for compression. You can modify that value according to your application.
    212210-2.png


    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.

    Best regards,
    Bruce Zhang

    0 comments No comments