How can I cache the master page in ASP.NET?
相关问题
- Carriage Return (ASCII chr 13) is missing from tex
- How to store image outside of the website's ro
- 'System.Threading.ThreadAbortException' in
- Request.PathInfo issues and XSS attacks
- How to dynamically load partial view Via jquery aj
相关文章
- asp.net HiddenField控件扩展问题
- asp.net HiddenField控件扩展问题
- Asp.Net网站无法写入错误日志,测试站点可以,正是站点不行
- asp.net mvc 重定向到vue hash字符串丢失
- FormsAuthenticationTicket expires too soon
- “Dynamic operations can only be performed in homog
- What is the best way to create a lock from a web a
- Add to htmlAttributes for custom ActionLink helper
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.
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.