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