Welcome! Log In Create A New Profile

Advanced

Optional gzip...

Posted by jdm 
jdm
Optional gzip...
March 23, 2011 07:29AM
Hi,

I am serving mostly images and videos, so I turned gzip off.
But I am trying to turn gzip compression on for js/css/... (located in specific paths)...
But it seems not to work. I tried this:

gzip off;
location ^~ /Js/ { gzip on; }
location ^~ /Css/ { gzip on; }
location ^~ /XML/ { gzip on; }

Is this supposed to work?
Or is there a better way?

Thanks,
JD
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 172
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready