MyBB Community Forums

Full Version: NGINX Gzip On? nginx.conf
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Will override Gzip Off in MyBB AdminCP?

Huh
If you have gzip on in your MyBB settings then your PHP content will be compressed but your static content (CSS/JS/Images) will not be getting compressed.

If you have it on in nginx then html/php as well as your static content will be compressed.

If you have it enabled in both locations you'll probably end up seeing a bunch of gibberish when viewing a page because it is compressed twice and only decompressed once.

I suggest disabling it in MyBB and enabling it in nginx.
by default nginx gzip does not include css/js/images, but that's customizable

http://nginx.org/en/docs/http/ngx_http_g...gzip_types
if you use cloudflare, better disable gzip or not?

cloudflare gzip files...
https://support.cloudflare.com/hc/en-us/...-resources-