Welcome! Log In Create A New Profile

Advanced

Auto refresh for expired content?

May 16, 2017 12:47PM
Hi Folks,

i´m using Nginx as a proxy for my mobile app - which works pretty fine so far!

My main cache has the following config:
proxy_cache_path /var/cache/nginx/spieldaten levels=1:2 keys_zone=spieldaten:100m max_size=150m inactive=5m use_temp_path=off;

proxy_cache_valid 200 302 5m;

If a request is not cached by Nginx, it could take about 5 sec til it comes back from the defined proxy_pass - once it is cached its below 1 sec :)

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?

Thanks in advance!

Regrads,
Maik
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: 93
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