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 why if ($args ~ "no_cache=1") { set $ccontrol "no-cache";} ignored as well Posted at Nginx Forum: http://forum.nginx.org/read.php?2,213841,213863#msg-213863