【发布时间】:2011-06-20 11:26:25
【问题描述】:
我为应用程序创建菜单的部分页面。我正在使用渲染操作调用菜单部分视图。我想通过这样做将这个部分页面存储在客户端
[OutputCache(Duration=7200, Location =OutputCacheLocation.Client, NoStore= true)]
但我收到以下错误
OutputCacheAttribute for child actions only supports Duration, VaryByCustom, and VaryByParam values. Please do not set CacheProfile, Location, NoStore, SqlDependency, VaryByContentEncoding, or VaryByHeader values for child actions
任何替代这个
【问题讨论】:
-
从属性中移除
NoStore。
标签: c# asp.net-mvc asp.net-mvc-3 outputcache