|
Post by account_disabled on Nov 4, 2023 22:30:20 GMT -5
It is worth knowing that if you use JCHOST resources , you can now compress data using Brotli. As from October , , this method has become part of the hosting functionality . However, if we have no choice but to install the module, we can use the steps below. Here's how to do it: . Installing Brotli on the server Before we initiate the entire process, it is worth verifying whether Brotli has not been previously implemente. How to enable Brotli on the server. We can determine this using a small tool: Key CDN . In the visible field, enter the URL address of your website and wait for the result. If the server does not compress resources using Brotli, it is worth proceeing to the photo editor following steps, which will show how to install the module for Nginx. Here's how to do it: . Log in via SSH to the system shell and enter the command: sudo apt update && sudo apt install brotli . Install the Nginx Brotli compression module. To do this, go to GitHub and look for the Installation section . Follow the instructions. . Add configuration guidelines by eiting the nginx.conf. The available directives can be found in the field: Configuration directives . An example configuration to run Brotli compression for level might look like this: Finally, restart Nginx: sudo systemctl reload nginx After performing these operations, the server should support Brotli. And to be sure about this, we can once again refer to the Key CDN tool . . Enable compression using the plugin After installing Brotli on the server, all that remains is to enable support for our website.
|
|