Question
How to enable gzip compression for a website on Linux?
Answer
It depends on the web server that is being used.
How to enable gzip compression on nginx on Plesk server
How to enable gzip compression in Apache on Plesk server
Additionally, since Plesk Obsidian 18.0.33 Brotli compression is enabled by default, from the box.
Note: Brotli compression is generally used as an alternative to gzip, as Brotli provides better overall compression.[1] Compared to gzip compression, JavaScript files compressed with Brotli are roughly 15% smaller, HTML files are around 20% smaller, and CSS files are around 16% smaller.[2]