Using nginx and/or varnish to cache server-generated 301 redirects
- by rlotun
I'm implementing a sort of url-shortener service. What happens is that I have some backend app server that takes in a request, does some computation and returns a 301 redirected url back upstream to an nginx frontend:
request ---> nginx ----> app_server
What I want to be able to do is cache this returned 301 url for the same request (a…