Welcome! Log In Create A New Profile


Re: Proxy_no_cache question

Maxim Dounin
June 03, 2021 09:24AM

On Thu, Jun 03, 2021 at 10:12:50AM +0200, Eloy Coto Pereiro wrote:

> I was checking how proxy_no_cache is handled, and I want to open a
> discussion
> here. When it is set to off, should the ngx_http_upstream_cache[0] call at
> all? I
> mean, why start the cache options when it's not enabled at all?

The "proxy_no_cache on;" doesn't mean that the cache is not
enabled at all. Rather, it means that a particular response
should not be saved to cache for some reason. Whether or not it
will be possible to save the response might not be known till the
response headers are received.

If you want to completely disable caching, consider using
"proxy_cache off;".

Maxim Dounin
nginx-devel mailing list
Subject Author Views Posted

Proxy_no_cache question

Eloy Coto Pereiro 125 June 03, 2021 04:14AM

Re: Proxy_no_cache question

Maxim Dounin 47 June 03, 2021 09:24AM

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

Online Users

Guests: 83
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready