Using ASP.NET MVC OutputCache while varying View content based on whether user is authenticated

后端 未结 2 1684
梦如初夏
梦如初夏 2021-01-13 03:53

I\'m building an ASP.NET MVC 2 site where I\'m using the OutputCache parameter heavily. However, I have a concern: using such caching may interfere with authenticati

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-13 04:06

    I believe what you need is ASP.NET donunt caching. See here for a good explaination. I wouldn't be suprised if SO uses something like this for the top bar area.

提交回复
热议问题