Abstract behavior of nginx
JPomorski at wolterskluwer.pl
Tue Nov 26 10:56:45 UTC 2013
It makes sense... Thank you for your help.
From: nginx-bounces at nginx.org [mailto:nginx-bounces at nginx.org] On Behalf Of Maxim Dounin
Sent: Monday, November 25, 2013 2:32 PM
To: nginx at nginx.org
Subject: Re: Abstract behavior of nginx
The "if ($cdn)" is evaluated while processing rewrite rules, and at this point value of $sent_http_content_type isn't yet known (because response isn't sent). But due to this evaluation calculated values of the $sent_http_content_type and $cdn variables are cached, and not re-evaluated again later.
That is, what you see in logs is a value of the $sent_http_content_type variable at the time the variable was evaluated for the first time during request processing.
nginx mailing list
nginx at nginx.org
More information about the nginx