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

Compress /js/xenforo/xenforo.js

Luke F

Well-known member
#3
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?
 

Andy.N

Well-known member
#4
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;
}
 

Luke F

Well-known member
#5
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