Why does a compressed-layer application exclude Global.asax?
Try the following:
public override string GetVaryByCustomString(HttpContext context, string custom) { if (custom == "role") return Roles.GetRolesForUser().Aggregate((a,b) => a = a+b); }
source share