<div dir="ltr">Hi,<div><br></div><div>For our purposes, we need to be able to turn off etag under specific conditions, e.g.:</div><div><br></div><div><font face="monospace">location / {</font></div><div><font face="monospace">    if ($condition) {</font></div><div><font face="monospace">        etag off;</font></div><div><font face="monospace">    }</font></div><div><font face="monospace">}</font></div><div><br></div><div>However, this syntax is invalid because this directive doesn't include the NGX_HTTP_LIF_CONF flag.</div><div><br></div><div>We added that flag. Then recompiled NGINX. So now:</div><div><br></div><div>* the syntax is accepted by NGINX </div><div>* at runtime it works as desired</div><div><br></div><div>Are there any potential problems with this approach? Performance or otherwise?</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Best regards,<br>Danila</div></div></div></div>