Hi. I'm trying to use 2 level proxying to cache files delivered with X-Accel-Redirect. This kinda works, the only thing missing is getting the cache_key to be the filename. If `proxy_cache` is unset (or set to the default), the caching mechanism "works": - Every request gets cached (good) - Different URLs that map to the same file get mapped to different cache keys (bad) - I gby deivid__ - Nginx Mailing List - English
Real files on a slow filesystem. They'll never move / go away / change / whatever.by deivid__ - Nginx Mailing List - English
I mistakenly typed redirect to /nfs because it redirects to /converted which has an alias to /nfs. The files are delivered, my problem is that the cache is never populated, so following requests keep hitting the slow filesystemby deivid__ - Nginx Mailing List - English
Igor: As I explained to francis ( https://forum.nginx.org/read.php?2,275138,275163#msg-275163 ), I don't want to cache what goes to uwsgi. I get a request for /v/example-uri, my back-end answers with X-accel-redirect: /nfs/file1.img (2gb). I want nginx to copy this to a local cache ( /cache/c/29/b7f54b2df7773722d382f4809d65029c or whatever ) and serve subsequent requests (that might be /v/eby deivid__ - Nginx Mailing List - English
Francis, The /data root was an example, in my case it's /v/ What I want to do is: - get a request like /v/c85320d9ddb90c13f4a215f1f0a87b531ab33310 - proxy that to my back-end which tells nginx to serve a certain file (X-Accel-redirect). - I want to cache this file as the first access is expensive. (I want to cache *the file*, other requests can end up pointing to the same file, that's wby deivid__ - Nginx Mailing List - English
Hi, I currently get requests that are resolved with an external server to a file with X-Accel-Redirect: for example: /data/asd-asd-asd -> proxied to a backend -> resolves to file.xls /data/qqq-qqq-qqq -> proxied to a backend -> resolves to file.xls /data/123-123-123 -> proxied to a backend -> resolves to image.jpeg I want to cache the resulting files with nginx, as thby deivid__ - Nginx Mailing List - English