·您现在的位置: 云翼网络 >> 文章中心 >> 网站建设 >> 网站建设开发 >> ASP.NET网站开发 >> 让ASP.NET OutputCache使用http.sys kernel-mode cache

让ASP.NET OutputCache使用http.sys kernel-mode cache

作者:佚名      ASP.NET网站开发编辑:admin      更新时间:2022-07-23

在默认情况下,http.sys kerne mode cache只缓存静态文件。

那我们如何让asp.net OutputCache直接使用http.sys kerne mode cache?这样缓存的处理性能会更好。

解决方法是在IIS的Output Caching设置中,添加一条针对.aspx扩展名的使用kernel-mode caching的缓存规则,如下图所示:

IIS针对ASP.NET的kernel-mode caching配置

遗留问题:如何让ASP.NET MVC OutputCache也使用http.sys kernel-mode cache?

【参考资料】

Windows Kernel Cache