开发者

Cache Master Page in ASP.NET

开发者 https://www.devze.com 2022-12-13 18:24 出处:网络
How can I cache 开发者_如何学Gothe master page in ASP.NET?Unlike user controls, you can\'t OutputCache a Master page by itself--only as part of a Page.

How can I cache 开发者_如何学Gothe master page in ASP.NET?


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

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

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

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


If you use the @OutputCache directive on the page that uses the master page, then the master page will be cached along with the rest of the page.

0

精彩评论

暂无评论...
验证码 换一张
取 消