[OutputCache (Duration=20, VaryByParam="None" )]
public ActionResult display()
This code cache whole page.
But, my site has user infomation on top like this ASP.net. The user info "Signed as userid | Edit Profile | ..." section should be changed when user sign in/out. But rest of the page is always same and it's good to Cache.
If the above code is used, the user info on top also cached and give wrong info to user.
So, what is the best solution for this?
View Complete Post