• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Enabling gzip compression


Well-known member
Please, can you help me enabling gzip compression? I'm using nginx 1.7.10 with PHP 5.6.10 and I can't make it work for some files.

From GTMetrix:
Compressing the following resources with gzip could reduce their transfer size by 172.1KiB (67% reduction).
Compressing https://example.com/js/xenforo/xenforo.js?_v=c6cba854 could save 110.6KiB (68% reduction).
Compressing https://example.com/js/jquery/jquery-1.11.0.min.js could save 61.5KiB (65% reduction).
Code in nginx.conf:
  gzip on;
  #gzip_disable "msie6";
  #gzip_vary on;
  # gzip_proxied expired no-cache no-store private auth;
  gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
lib.output_compression = On