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

在默认情况下,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

原文地址:https://www.cnblogs.com/dudu/p/3758874.html