Something doesn't match… EE settings for Nginx ensure dynamic pages never get cached.
Please, provide more information (at least the cache mechanism you are using — or the login URL so we can take a look at the headers, but probably you won't wish to disclose such information here.