If you configure and install nginx with the flag --with-http_gzip_static_module , then enable static gzipping gzip_static on; .
HttpGzipStaticModule
With static gzip, when nginx receives a file request, it tries to read and return the same file with the extension ".gz".
My question is: this seems to be a better choice than a gzipping file when the user makes a request because the file is already gzipped, right? You win speed, you can serve files faster. Right now I have gzipped font files and I am sending the user a package with all js (concatenated, minified and gzipped) another package with all css. Should I also preview images?
source share