Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] Cache: status must be less then 599 in *_cache_valid directives.

Maxim Dounin
September 24, 2018 07:34PM
Hello!

On Mon, Sep 24, 2018 at 10:10:08PM +0300, Gena Makhomed wrote:

> On 24.09.2018 21:00, Maxim Dounin wrote:
>
> >> # HG changeset patch
> >> # User Gena Makhomed <gmm@csdoc.com>
> >> # Date 1537810006 -10800
> >> # Mon Sep 24 20:26:46 2018 +0300
> >> # Node ID fc6c7e03edaad907d6a85afab009cb5c1fa43c56
> >> # Parent 17092295247709a533acca09f990c13337a24948
> >> Cache: status must be less then 599 in *_cache_valid directives.
> >>
> >> Previously, configurations with typo, for example
> >>
> >> fastcgi_cache_valid 200301 302 5m;
> >>
> >> successfully pass configuration test. Adding check for status
> >> codes > 599, and such configurations are now properly rejected.
>
> > Have you seen such configurations in the real life, or it is
> > something made-up while looking at the code?
>
> While looking at the code and your patch
> http://hg.nginx.org/nginx/rev/7c614ef3c6ea

Note that the commit in question refers to the real-life usage,
"proxy_cache_valid 2xx 30s;" is an excerpt from a real config.

> Did you see in the real life configurations
> need for *_cache_valid status codes > 599 ?

I've seen configurations where status codes > 599 were actually
used in production, see here for an example:

http://mailman.nginx.org/pipermail/nginx-ru/2016-June/058317.html

On the other hand, I don't really think that such configurations
are worth considering, they are clearly violation HTTP
specification.

I've committed your patch, thanks.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Allow 1xx 2xx 3xx 4xx 5xx codes in xxxxx_cache_valid directives.

Gena Makhomed 386 September 21, 2018 07:26AM

Re: [PATCH] Allow 1xx 2xx 3xx 4xx 5xx codes in xxxxx_cache_valid directives.

Maxim Dounin 180 September 21, 2018 09:00AM

[PATCH] Add 307 and 308 to default response codes for xxxxx_cache_valid.

Gena Makhomed 196 September 21, 2018 11:36AM

Re: [PATCH] Add 307 and 308 to default response codes for xxxxx_cache_valid.

Maxim Dounin 171 September 24, 2018 12:26PM

[PATCH] Cache: status must be less then 599 in *_cache_valid directives.

Gena Makhomed 170 September 24, 2018 01:36PM

Re: [PATCH] Cache: status must be less then 599 in *_cache_valid directives.

Maxim Dounin 183 September 24, 2018 02:02PM

Re: [PATCH] Cache: status must be less then 599 in *_cache_valid directives.

Gena Makhomed 152 September 24, 2018 03:12PM

Re: [PATCH] Cache: status must be less then 599 in *_cache_valid directives.

Maxim Dounin 211 September 24, 2018 07:34PM



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

Online Users

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