Mercurial > hg > nginx-site
diff xml/en/docs/http/ngx_http_headers_module.xml @ 1375:ab0ebdd7ddac
Documented variables support in the expires directive.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Wed, 17 Dec 2014 21:12:00 +0300 |
parents | d7740f42b00a |
children | 4b6d7686e00f |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_headers_module.xml Tue Dec 16 17:22:42 2014 +0300 +++ b/xml/en/docs/http/ngx_http_headers_module.xml Wed Dec 17 21:12:00 2014 +0300 @@ -10,7 +10,7 @@ <module name="Module ngx_http_headers_module" link="/en/docs/http/ngx_http_headers_module.html" lang="en" - rev="6"> + rev="7"> <section id="summary"> @@ -33,6 +33,7 @@ expires 0; expires -1; expires epoch; +expires $expires; add_header Cache-Control private; </example> </para> @@ -142,6 +143,19 @@ header fields. </para> +<para> +The last parameter value can contain variables (1.7.9): +<example> +map $sent_http_content_type $expires { + default off; + application/pdf 42d; + ~image/ max; +} + +expires $expires; +</example> +</para> + </directive> </section>