Welcome! Log In Create A New Profile

Advanced

Re: *_cache_revalidate directives

Roman Arutyunyan
July 09, 2015 03:32AM
Hello,

> On 09 Jul 2015, at 04:43, Alt <nginx-forum@nginx.us> wrote:
>
> Hello,
>
> From the documentation, I don't understand how the fastcgi_cache_revalidate
> (or scgi_cache_revalidate or proxy_cache_revalidate or
> uwsgi_cache_revalidate) works.
> Please, can someone explain what nginx does when cache is enabled and the
> revalidate directive is set to "on"?

Normally, when a cache entry is expired in nginx cache, nginx fetches a replacement from upstream.
If cache revalidation is enabled, nginx asks the upstream if the current (expired) entry is still
valid using “If-Modified-Since” and “If-None-Match” HTTP headers. The upstream can reply with
"304 Not Modified" to confirm the validity. In this case the entry remains in cache until it
expires again.

--
Roman Arutyunyan



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

*_cache_revalidate directives

Alt July 08, 2015 09:43PM

Re: *_cache_revalidate directives

Roman Arutyunyan July 09, 2015 03:32AM

Re: *_cache_revalidate directives

Alt July 09, 2015 03:59AM

Re: *_cache_revalidate directives

Roman Arutyunyan July 09, 2015 04:34AM

Re: *_cache_revalidate directives

Alt July 10, 2015 07:17AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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