肖恩D++
Not Equal C && !=C && 不等于西
-
Disable Browser Cache for Specific Page in ASP.NET MVC 3
Posted on May 21st, 2015 Add commentsGenerally when you click the “Back” or “Forward” button on the browser, the page won’t refresh unless you tell the browser not saving the cache for it. To implement “Disable Browser Cache” for specific page in ASP.NET MVC 3, just simply use the “OutputCacheAttribute” from MVC 3 framework:
12345[OutputCache(NoStore = true, Duration = 0)]public ActionResult MyAction(){//code here}
32 views
Recent Comments