Try:
[OutputCache(NoStore = true, Duration = 0, VaryByParam = "*")]
This attribute, placed in controller class, disables caching. Since I don't need caching in my application, I placed it in my BaseController class:
[OutputCache(NoStore = true, Duration = 0, VaryByParam = "*")]
public abstract class BaseController : Controller
{
Here is nice description about OutputCacheAttribute: Improving Performance with Output Caching
You can place it on action too.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…