SacAutos
Regular Pleskian
I have a domain that just servers javascript (.js) files as part of my overall CDN scheme. I realized the other day that I could improve my website performance if I enabled GZIP for nginx. I found several useful posts on the internet that stated, in summary, if I added these directives:
gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
gzip_proxied any;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript image/x-icon image/bmp image/svg+xml;
gzip_vary on;
into a file called /etc/nginx/conf.d/gzip.conf on my server and restarted nginx, that gzip would be enabled. Well, it didn't work. I went back through the panel and checked the Apache/nginx settings. All the boxes for smart serving of content were all on.
Thinking that perhaps I could enable gzip for just the domain, I added the directives above to my vhost_nginx.conf file (I had previously created one) and restarted nginx. Still no gzip compression.
Anybody have any ideas why this wouldn't be working? Additional things to check or test would help. Thanks!
gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
gzip_proxied any;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript image/x-icon image/bmp image/svg+xml;
gzip_vary on;
into a file called /etc/nginx/conf.d/gzip.conf on my server and restarted nginx, that gzip would be enabled. Well, it didn't work. I went back through the panel and checked the Apache/nginx settings. All the boxes for smart serving of content were all on.
Thinking that perhaps I could enable gzip for just the domain, I added the directives above to my vhost_nginx.conf file (I had previously created one) and restarted nginx. Still no gzip compression.
Anybody have any ideas why this wouldn't be working? Additional things to check or test would help. Thanks!