Gzip and Brotli compression on both Apache and NGINX
Hello,
My website was initially server by EasyApache 4 on cPanel and I had enabled gzip and brotli compression via the .htaccess file. Afterwards I installed the NGINX as a Reverse Proxy by following the default installation of cPanel. I have also enabled gzip and brotli compression for NGINX. Is this correct performance wise, or it adds overhead?
Since NGINX and Apache are hosted on the same server maybe Apache can serve NGINX without compression, while NGINX compress the content for the end client.
-
Hey hey! Your last sentence makes the most sense to me - having Nginx serve the compressed content to end user would use less data and speed up the transaction, so that would be the way to go!
0
Please sign in to leave a comment.
Comments
1 comment