Empty $upstream_http_location variable if response was cached
- by Ivaldi
I would like to cache the response of an redirect.
(Cache the request to some site which returns a redirect and cache the
second request which returns the actual content.)
So far my config looks like this:
location = /proxy {
error_page 301 302 307 = @redir;
resolver 8.8.8.8;
proxy_pass $arg_url;
proxy_intercept_errors…