We have closed system (Only authenticated users can use system (FormAuthentication))
Unauthenticated users must see entrance page with login option
Our site is multi-tenant (x.com,y.com,z.com runs on same web application)
We can think these:
RouteConstraint (anonymous users are routed to different controller action and that action is outputcached.
CustomOutputCaching: How to turn output caching off for authenticated users in ASP.NET MVC?
IIS level (on web.config maybe).Could we route all unauthenticated users to entrance page (we dont know how)(it must be multitenant and outputcached!)
We can think these. our first goal is Performance.
EDIT
When unauthenticated user try to enter authenticated page it has to get 404 error or root ur direction (not login redirection)
PS:
Sometimes we can get unauthenticated weird web requests (Not ddos but boring..) We are responding them with 404. There is no problem to serve our entrance page for this type of requests..(performance is first consideration for us)