Is there a way to use the OutputCache attribute to cache the results of only logged out users and reevaluate for logged in users example:
What I'd Like
[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
}