2011-08-30 73 views

回答

0

在MVC中,你可以在Controller類中設置它,所以視圖不使用緩存;

public ActionResult User() 
{ 
    Response.CacheControl = "no-cache"; 
    return View(); 
}