Welcome! Log In Create A New Profile

Advanced

GZIP not compressing .js and .css files..

January 02, 2012 12:08PM
Hi,

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 text/javascript;
####

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

Have I missed something?

TIA
Subject Author Posted

GZIP not compressing .js and .css files..

wipeout_dude January 02, 2012 12:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 102
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready