serving cached files based upon cookie?
- by matthewsteiner
So I realized something today. In my application, you really can't get anywhere (except the front page) unless you're logged in. And you can't be logged in without a cookie. So my front page could be cached, except the problem is if you are logged in (have a cookie set) then it should just redirect into the application.
Is there a way for nginx to look for a cookie and if it finds it then deliver a cached file?
Just an idea...