config file for only static files.

Igor Sysoev is at
Sun Apr 6 12:49:04 MSD 2008

On Sun, Apr 06, 2008 at 06:26:47PM +1000, Dave Cheney wrote:

> There is your problem, you need the source, non gzip'ed file for  
> clients that don't request content-encoding. From my understanding,  
> nginx locates the requested file, then looks aside for a gziped  
> version if gzip_static is enable (and the original file has a matching  
> mime type?)

No, gzip_types are not checked for static files.
It's assumed, that admin has gzipped right files.

The following directives are checked, if gzip_static is on:
gzip_http_version, gzip_proxied, and gzip_disable.

Igor Sysoev

More information about the nginx mailing list