Nginx: conditional "expires" directive

somebi nginx-forum at
Tue Aug 16 16:13:25 UTC 2011

Getting two max-age headers in result. One with 1 year and second with
3600. ?no_cache=1 gives the same result.
if ($arg_no_cache) { set $ccontrol "no-cache";} is ignored do not know
if ($args ~ "no_cache=1") { set $ccontrol "no-cache";} ignored as well

Posted at Nginx Forum:,213841,213863#msg-213863

More information about the nginx mailing list