Firebird News

Sunday, February 22, 2009

Adding compression to javascript files , css for an A grade in performance

Here is the example for nginx but it can be done the same for an apache configuration

gzip_min_length 1000;
gzip_types text/html text/plain text/css text/javascript application/x-javascript text/xml;

gzip module usually is on but it must be configured as above

one smart thing to do is to precompress your javascript files and css ones

No comments: