Re: Auto refresh for expired content?

2017-05-29 Thread mkuehn
Hi Roman, i would like to kindly ask you, if you already had the time to take a look at my config, which i posted on May 18, 2017 10:02AM? Thanks in advanced! Maik Posted at Nginx Forum: https://forum.nginx.org/read.php?2,274264,274493#msg-274493 ___

Re: Auto refresh for expired content?

2017-05-18 Thread mkuehn
Hi Roman, hi Francis, here comes my production config - i made a few tests the last hours, it always come to the same point - if proxy_cache_background_update is on, nginx devilvers only the cached content and is not able to fetch a fresh copy (dont know why) - i tried local files, i tried my prod

Re: Auto refresh for expired content?

2017-05-18 Thread Roman Arutyunyan
On Wed, May 17, 2017 at 09:07:30AM -0400, mkuehn wrote: > Hi Roman, > > thanks for your reply - with proxy_cache_background_update is OFF, the > correct testfile "test.js"is requested: > > "GET /test.js HTTP/1.0" 200 199503 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; > x64) AppleWebKit/537.36 (KHTML

Re: Auto refresh for expired content?

2017-05-17 Thread Francis Daly
On Wed, May 17, 2017 at 03:29:03AM -0400, mkuehn wrote: Hi there, > proxy_cache_path /var/cache/nginx/spieldaten levels=1:2 > keys_zone=spieldaten:100m max_size=150m inactive=5d use_temp_path=off; > ... ... ... > proxy_cache test; I'm pretty sure that nginx's internationalisation/loc

Re: Auto refresh for expired content?

2017-05-17 Thread mkuehn
Hi Roman, thanks for your reply - with proxy_cache_background_update is OFF, the correct testfile "test.js"is requested: "GET /test.js HTTP/1.0" 200 199503 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36" With proxy_cache_b

Re: Auto refresh for expired content?

2017-05-17 Thread Roman Arutyunyan
Hi, On Wed, May 17, 2017 at 03:29:03AM -0400, mkuehn wrote: > Hi Francis, > > thanks a lot for your reply! > > I tried to use proxy_cache_background_update with the following config > part. > > proxy_cache_path /var/cache/nginx/spieldaten levels=1:2 > keys_zone=spieldaten:100m max_size=150m ina

Re: Auto refresh for expired content?

2017-05-17 Thread mkuehn
Hi Francis, thanks a lot for your reply! I tried to use proxy_cache_background_update with the following config part. proxy_cache_path /var/cache/nginx/spieldaten levels=1:2 keys_zone=spieldaten:100m max_size=150m inactive=5d use_temp_path=off; ... ... ... proxy_cache test;

Re: Auto refresh for expired content?

2017-05-16 Thread Francis Daly
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

Auto refresh for expired content?

2017-05-16 Thread mkuehn
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 requ