復制代碼 代碼如下:
[OutputCache(Duration=60)]
public ActionResult Browse(string category)
{
return View();
}
復制代碼 代碼如下:
public class Global: System.Web.HttpApplication
{
public override string GetOutputCacheProviderName(HttpContext context)/
{
if(context.Request.Path.EndsWith("Home.aspx")
{
return "AspNetInternalProvider";
}
else
{
return base.GetOutputCacheProviderName(context);
}
}
}
新聞熱點
疑難解答
圖片精選