我是創建應用程序菜單的部分頁面。我使用renderaction調用菜單局部視圖。我想這樣做具有部分頁面的客戶端上的Outputcache屬性'
[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'。 –