Re: proxy_cache_background_update after cache expiry

2017-04-06 Thread IgorR
thank you Maxim, the resourse was saved to cache but was quickly expiring in the browser causing a Cache-Control: no-cache header to be sent. Sending something like Cache-Control: public,max-age=15,s-maxage=240;must-revalidate,stale-while-revalidate=240 together with Last-Modified/ETag from t

proxy_cache_background_update after cache expiry

2017-04-05 Thread IgorR
Hello, I'm trying to configure nginx to use proxy_cache_background_update but it seems like after expiry it still waits for the full roundtrip to the backend, returning a MISS in X-Cache-Status. What am I MISSing? I'm using nginx 1.11.12 under ubuntu 14.04 running inside docker, but hopefully thi