HttpGzipStaticModule
(Difference between revisions)
m (→References: fix link list) |
(→Directives) |
||
| Line 20: | Line 20: | ||
= Directives = | = Directives = | ||
== gzip_static == | == gzip_static == | ||
| − | + | <include wikitext nopre src="http://wiki.nginx.org/nginx.org/ngx_http_gzip_static_module/gzip_static.txt" /> | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
Enables the module. You should ensure that the timestamps of the compressed and uncompressed files match. | Enables the module. You should ensure that the timestamps of the compressed and uncompressed files match. | ||
| Line 38: | Line 34: | ||
== gzip_vary == | == gzip_vary == | ||
| − | See [[NginxHttpGzipModule#gzip_vary| NginxHttpGzipModule]] | + | See [[NginxHttpGzipModule#gzip_vary| NginxHttpGzipModule]] |
| − | + | ||
= References = | = References = | ||
* [http://nginx.org/en/docs/http/ngx_http_gzip_static_module.html Original Documentation] | * [http://nginx.org/en/docs/http/ngx_http_gzip_static_module.html Original Documentation] | ||
* [[NginxHttpGzipModule|See also: Gzip Compression Module]] | * [[NginxHttpGzipModule|See also: Gzip Compression Module]] | ||
Revision as of 18:13, 30 April 2012
Contents |
Synopsis
Before serving a file from disk to a gzip-enabled client, this module will look for a precompressed file in the same location that ends in ".gz". The purpose is to avoid compressing the same file each time it is requested.
ngx_http_gzip_static_module was introduced in nginx 0.6.24. You must enable support at compile time:
./configure --with-http_gzip_static_module
Example
gzip_static on; gzip_http_version 1.1; gzip_proxied expired no-cache no-store private auth; gzip_disable "MSIE [1-6]\."; gzip_vary on;
Directives
gzip_static
ERROR in secure-include.php: could not read the given src URL http://wiki.nginx.org/nginx.org/ngx_http_gzip_static_module/gzip_static.txt
Enables the module. You should ensure that the timestamps of the compressed and uncompressed files match.










