Welcome! Log In Create A New Profile

Advanced

Re: Using 2 intersection of conditions for proxy_cache_bypass (avoiding logical if/and)

Jeroen Ooms
January 24, 2014 09:42PM
On Fri, Jan 24, 2014 at 1:04 PM, B.R. <reallfqq-nginx@yahoo.fr> wrote:
> Does the following work?

This looks like a fragile solution. You're basically simulating an
"if", but I don't think we should assume that nginx will resolve all
maps in the defined order, as would be using "if".

The nginx documentation for HttpMapModule says: "The map directive
creates the variable, but only performs the mapping operation when
(and if) the variable is accessed." In your solution, $bypass is
already set to "true" a-priori, and also defined in two maps. I doubt
nginx will resolve those maps, in the right order, to arrive at the
desired value of $bypass.

Maybe someone from the nginx team can comment if this is a viable solution?

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Using 2 intersection of conditions for proxy_cache_bypass (avoiding logical if/and)

Jeroen Ooms January 24, 2014 03:48PM

Re: Using 2 intersection of conditions for proxy_cache_bypass (avoiding logical if/and)

B.R. January 24, 2014 04:06PM

Re: Using 2 intersection of conditions for proxy_cache_bypass (avoiding logical if/and)

Jeroen Ooms January 24, 2014 09:42PM

Re: Using 2 intersection of conditions for proxy_cache_bypass (avoiding logical if/and)

B.R. January 24, 2014 10:06PM

Re: Using 2 intersection of conditions for proxy_cache_bypass (avoiding logical if/and)

Jonathan Kolb January 25, 2014 08:26AM

Re: Using 2 intersection of conditions for proxy_cache_bypass (avoiding logical if/and)

Jeroen Ooms January 25, 2014 10:28PM

Re: Using 2 intersection of conditions for proxy_cache_bypass (avoiding logical if/and)

António P. P. Almeida January 24, 2014 09:58PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 138
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready