在ASP.NET缓存母版页 [英] Cache Master Page in ASP.NET

查看:102
本文介绍了在ASP.NET缓存母版页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何缓存母版页在ASP.NET?

How can I cache the master page in ASP.NET?

推荐答案

与用户控件,你不能的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.

这篇关于在ASP.NET缓存母版页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆