Danila Vershinin
November 26, 2022 12:04PM
Hi,

For our purposes, we need to be able to turn off etag under specific
conditions, e.g.:

location / {
if ($condition) {
etag off;
}
}

However, this syntax is invalid because this directive doesn't include
the NGX_HTTP_LIF_CONF flag.

We added that flag. Then recompiled NGINX. So now:

* the syntax is accepted by NGINX
* at runtime it works as desired

Are there any potential problems with this approach? Performance or
otherwise?

Best regards,
Danila
_______________________________________________
nginx-devel mailing list -- nginx-devel@nginx.org
To unsubscribe send an email to nginx-devel-leave@nginx.org
Subject Author Views Posted

Allowing the etag directive within if in location

Danila Vershinin 372 November 26, 2022 12:04PM

Re: Allowing the etag directive within if in location

Maxim Dounin 135 November 26, 2022 12:38PM

Re: Allowing the etag directive within if in location

Danila Vershinin 136 November 26, 2022 01:32PM

Re: Allowing the etag directive within if in location

Maxim Dounin 221 November 26, 2022 04:08PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 221
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