Is it possible to have Nginx cache all 301
redirect requests for proxy_pass
?
For example:
Request #1: Client A requests /some/path -> sent to proxy_pass
-> results in 301 redirect to /some/other/path
-> nginx caches this response since it's a 301 redirect.
Request #2: Client B requests /some/path -> nginx returns cached 301 redirect to /some/other/path
.