Enabling gzip compression in IIS

gzip is a file format and a software application used for file compression and decompression. The goal of this article is to provide steps on how to enable gzip compression.

Enabling gzip in IIS

  1. Open IIS Manager: Click Start, select Administrative Tools, and then click Internet Information Services (IIS) Manager.

  2. In the Connections pane, expand the server node and click the site that you want to manage.

  3. In the site’s Home pane, double-click “Compression”.

  4. In the Compression pane, check both “Enable dynamic content compression” and “Enable static content compression”.

  5. In the Actions pane, click “Apply”.

NOTE: If you have a website behind Cloudflare, you will likely see Brotli Compression instead of gzip compression. The reason for this is that Cloudflare uses Brotli compression in their setup and when you make a request to a site behind Cloudflare, the response header will come from Cloudflare and not directly from the server.

If you have any questions or encounter issues, please don’t hesitate to reach out to [email protected].