I am following this tutorial https://www.digitalocean.com/community/tutorials/how-to-add-the-gzip-module-to-nginx-on-ubuntu-16-04, but when testing, the output is different. It seems something is not working for me.
After following the steps in the tutorial, when testing:
curl -H "Accept-Encoding: gzip" -I http://localhost/test.jpg
The output is:
HTTP/1.1 301 Moved Permanently Server: nginx/1.10.3 (Ubuntu) Date: Wed, 04 Sep 2019 18:33:30 GMT Content-Type: text/html Content-Length: 194 Connection: keep-alive Location: https://radha.org.br/test.jpg
So the header
Content-Encoding: gzip is not appearing.
Another question is that i have two wordpress websites in my droplet. This configuration will impact the two of them or i have to configure each site separatedly for Gzip compression to work?
Anyway, i followed the tutorial until its end and after that i gave a reboot in my droplet, but still it seems hothing has changed.
Thank you so much for taking care.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!