Welcome! Log In Create A New Profile

Advanced

Re: Auto refresh for expired content?

Francis Daly
May 16, 2017 01:20PM
On Tue, May 16, 2017 at 12:47:57PM -0400, mkuehn wrote:

Hi there,

untested, but:

> Now my question, is it possible that Nginx can "automaticly" get a fresh
> copy from the proxy_pass, when it recognized that the cached request is
> expired - so that none User has to wait about 5 sec to get fresh content and
> gets always fast data from the Nginx cache?

does http://nginx.org/r/proxy_cache_background_update sound like it can
do what you want?

You might be able to achieve most of what you want outside of nginx
by running a "curl" command to fetch the content every few minutes;
the hope being that the curl command will be the one that is waiting
for 5 seconds and causing the local cache copy to be updated, while the
"real" clients are fed from the cache.

Good luck with it,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Auto refresh for expired content?

mkuehn May 16, 2017 12:47PM

Re: Auto refresh for expired content?

Francis Daly May 16, 2017 01:20PM

Re: Auto refresh for expired content?

mkuehn May 17, 2017 03:29AM

Re: Auto refresh for expired content?

Roman Arutyunyan May 17, 2017 07:14AM

Re: Auto refresh for expired content?

mkuehn May 17, 2017 09:07AM

Re: Auto refresh for expired content?

Roman Arutyunyan May 18, 2017 07:44AM

Re: Auto refresh for expired content?

mkuehn May 18, 2017 10:02AM

Re: Auto refresh for expired content?

mkuehn May 29, 2017 10:21AM

Re: Auto refresh for expired content?

Francis Daly May 17, 2017 11:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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