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
-
Open IIS Manager: Click Start, select Administrative Tools, and then click Internet Information Services (IIS) Manager.
-
In the Connections pane, expand the server node and click the site that you want to manage.
-
In the site’s Home pane, double-click “Compression”.
-
In the Compression pane, check both “Enable dynamic content compression” and “Enable static content compression”.
-
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].