Compress /js/xenforo/xenforo.js

Andy.N

Well-known member
I'm unable to compress this JS file using nginx. I see some xf installations with this issue and some don't.
 
Thought it might be a buffer setting but I don't have anything out of the ordinary set to non-default and it appears to work on my install

Do you have the latest stable nginx?
 
Thought it might be a buffer setting but I don't have anything out of the ordinary set to non-default and it appears to work on my install

Do you have the latest stable nginx?
I have nginx 1.3.3 and this on my config file
Code:
location /js/xenforo/ {
gzip on;
gzip_http_version 1.0;
gzip_proxied any;
gzip_types text/css application/x-javascript;
gzip_vary on;
}
 
I have nginx 1.3.3 and this on my config file
Code:
location /js/xenforo/ {
gzip on;
gzip_http_version 1.0;
gzip_proxied any;
gzip_types text/css application/x-javascript;
gzip_vary on;
}

Try setting gzip_http_version to 1.1.

If other JS files are not being gzipped as well, try adding text/javascript to gzip_types
 
Top Bottom