我在想,为了提高网站的速度,采取一些策略来缓存所包含的js文件是否有意义?
我的一个想法是这样做:
[OutputCache(Location = OutputCacheLocation.Any, Duration = 3600)]
public JsController : Controller
public ActionResult JQuery()
{
//I would have a ascx with the entire jquery script inside
return View();
}
在site.master上:
<%=Html.RenderAction(