Module ngx_http_headers_module | english русский 简体中文 עברית 日本語 türkçe news about download security advisories documentation pgp keys faq links books support donation trac wiki nginx.com | ||||||||||||
This translation may be out of date. Check the English version for recent changes.
The Example Configuration
expires 24h; expires modified +24h; expires @24h; expires 0; expires -1; expires epoch; add_header Cache-Control private;
Directives
Adds the specified field to a response header provided that the response code equals 200, 204, 206, 301, 302, 303, 304, or 307. A value can contain variables.
Enables or disables adding or modifying the “Expires” and “Cache-Control” response header fields. A parameter can be a positive or negative time.
A time in the “Expires” field is computed as a sum of the
current time and
In addition, it is possible to specify a time of the day using
the “ expires @15h30m;
The
The
The |