summaryrefslogtreecommitdiff
path: root/pod/nginx/ngx_http_gzip_static_module.pod
blob: d1e9b89f18d5006820be826cbccafcc5c589478d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
=encoding utf-8

=head1 NAME

ngx_http_gzip_static_module - Module ngx_http_gzip_static_module




=head1



The C<ngx_http_gzip_static_module> module allows
sending precompressed files with the “C<.gz>”
filename extension instead of regular files.





This module is not built by default, it should be enabled with the
C<--with-http_gzip_static_module>
configuration parameter.




=head1 Example Configuration




    
    gzip_static  on;
    gzip_proxied expired no-cache no-store private auth;






=head1 Directives

=head2 gzip_static


B<syntax:> gzip_static I<
    C<on> E<verbar>
    C<off> E<verbar>
    C<always>>


B<default:> I<off>


B<context:> I<http>


B<context:> I<server>


B<context:> I<location>





Enables (“C<on>”) or disables (“C<off>”)
checking the existence of precompressed files.
The following directives are also taken into account:
L<ngx_http_gzip_module>,
L<ngx_http_gzip_module>,
L<ngx_http_gzip_module>,
and L<ngx_http_gzip_module>.





With the “C<always>” value (1.3.6), gzipped file is used
in all cases, without checking if the client supports it.
It is useful if there are no uncompressed files on the disk anyway
or the L<ngx_http_gunzip_module|ngx_http_gunzip_module>
is used.





The files can be compressed using the C<gzip> command,
or any other compatible one.
It is recommended that the modification date and time of original and
compressed files be the same.