且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在ASP.NET缓存母版页

更新时间:2023-02-25 08:33:39

与用户控件,你不能的OutputCache本身是一个母版页 - 只有一个页面的一部分

Unlike user controls, you can't OutputCache a Master page by itself--only as part of a Page.

此外,OutputCaching不会帮助一个工具栏的表现有很多图像的反正。

Also, OutputCaching won't help the performance of a toolbar with lots of images anyway.

那种事情,这将有助于包括图像拼接,客户端缓存,采用CDN,使用静态文件的多个域,等等。

The kind of things that would help include image sprites, client-side caching, using a CDN, using multiple domains for static files, etc.

在情况下,它是有帮助的,我盖在我的书中这些战略:超快速ASP.NET

In case it's helpful, I cover those strategies in my book: Ultra-Fast ASP.NET.