GZIP not compressing .js and .css files


My server doesn’t appear to be compressing .js and .css files…

I have the following in my /etc/nginx/nginx.conf…

    gzip on;
    gzip_disable "msie6";

    gzip_vary on;
    # gzip_proxied any;
    gzip_comp_level 1;
    gzip_buffers 16 8k;
    gzip_http_version 1.1;
    gzip_types text/plain text/css application/json

application/x-javascript text/xml application/xml application/xml+rss

Pagespeed in Chrome is telling me to enable compression and lists all
the .js and .css files…

Have I missed something?


Posted at Nginx Forum:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs