I'm setting up an nginx - apache reverse proxy where nginx handles the static files and apache the dynamic. I have a search engine and depending on search parameter I either directly forward the user to the page they are looking for or provide a set of search results.
I cache these results in memcached as
key:/search.cgi?q=foo value: LOCATION:http://www.example.com/foo.html
key:/search.cgi?q=bar value: CONTENT-TYPE: text/html <html> .... .... </html>
I can pull the "Content-type...." values out of memcached using nginx and send them to the user, but I can't quite figure out how to handle a returned value like "Location..."