Can somebody comment on whether proxy_cache_key is supposed to be able
to handle # captures? I believe the below example shows how I want to
use it, but I can’t get it to work.
Regexp match in “if” directive will be executed (and will reset
enumerated captures) before proxy module will have cance to grab
$1. Use named captures as available in 0.8.25+ to avoid such
problems.
Additionally, “if” directive in question is useless due to the
following reasons:
$upstream_* variables are only available after nginx got reply
from upstream, while rewrite directives are executed at rewrite
phase - before we even send request to upstream.
gzip module is smart enough to don’t re-encode replies which
already have content-encoding applied.
Maxim D.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.