On networks with low bandwidth and metered connection, the amount of data transferred becomes an important metric. To transfer less data, you can enable data compression in your web server.
Steps are provided for the following platforms and servers:
Windows:
-
IIS (Internet Information Services) v10.0.17763.1
-
NGINX v1.18.0
-
Apache v2.4.46
Linux:
-
NGINX v1.19.1
-
Apache v2.4.29
Compression level
There is a trade-off between compression ratio and compression time. This is controlled by the compression level. The higher the compression level, the smaller the transferred data volume and the shorter the compression time. However, higher compression levels can add a significant CPU load.
If you only require minimizing the transferred data, we recommend setting higher compression levels. If the application load time is more important, then use a lower compression level.