是否有使用的OutputCache属性来缓存结果的唯一注销用户并重新评估了登录的用户实例的方式:输出缓存MVC3只注销用户缓存
我想
[OutputCache(onlycacheanon = true)]
public ActionResult GetPhoto(id){
var photo = getPhoto(id);
if(!photo.issecured){
return photo...
}
return getPhotoOnlyIfCurrentUserHasAccess(id);
//otherwise return default photo so please don't cache me
}
这是非常的事我是缺少谢谢。我没有意识到空禁用缓存。 – maxfridbe 2012-03-28 06:08:55
不知道它可用。谢谢:) – 2012-03-28 10:09:35
@maxfridbe:不要忘记接受答案。 – jgauffin 2012-04-23 18:25:07