Abstract behavior of nginx
Pomorski Jarosław
JPomorski at wolterskluwer.pl
Tue Nov 26 10:56:45 UTC 2013
Hello,
It makes sense... Thank you for your help.
Regards,
Jarek
-----Original Message-----
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
Hello!
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.
--
Maxim Dounin
http://nginx.org/en/donation.html
_______________________________________________
nginx mailing list
nginx at nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
More information about the nginx
mailing list