I made a diagram to be more specific. It's not a problem if the client ask for /data and get an older version of the file. The invalidate option in proxy_cache is enough for me. Here is my diagram without cache: http://imgur.com/a/soq69 Obviously, I don't want to reach the upstream server every time but only if the file hasn't been reached after x minutes.by bdesemb - Nginx Mailing List - English
I want to add some clarification. My client calls is like "/app" and the server respond with a name. My file is stored at /var/local/data/<name>. I want to cache the response. So if I have another request on /app, Nginx should respond with the cached version of the file.by bdesemb - Nginx Mailing List - English
Thanks for your help but there is still something I don't understand. I have dynamic access for resources. For me, I have 3 different locations in 2 servers and your conf only contains 2. I have my location of the client request, the location of the X-Accel-Redirect and the location where caching happens. I tried this but it's not working. I got a 200 with an empty body. server { listen 80by bdesemb - Nginx Mailing List - English
Hi Maxim, Can you post an example please? I don't understand how to do that.by bdesemb - Nginx Mailing List - English