Re: Proxy_cache_key based on custom header

2017-06-30 Thread Peter Booth
I had best caching experience when I started using the openresty nginx bundle. It's a build of nginx that contains a bunch of Lua modules that make it a lean application server. With that I could create cache keys that exactly matched my (complex) business requirements Sent from my iPhone > O

Re: Proxy_cache_key based on custom header

2017-06-30 Thread Francis Daly
On Tue, Jun 27, 2017 at 05:43:22PM -0400, deivid__ wrote: Hi there, You will probably change your setup so that the default proxy_cache_key works for you; but for information: > If `proxy_cache` is set to `$sent_http_x_test_header`: > - Every request gets cached (good) > - All URLs map to the sa

Proxy_cache_key based on custom header

2017-06-27 Thread deivid__
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) - Diff