I've been using Microsoft.AspNetCore.Mvc.ResponseCacheAttribute
for the first time and have come across an issue that I would have solved previously using the VaryByCustom
property in OutputCache
in ASP.NET (and using public override string GetVaryByCustomString(HttpContext context, string s)
in the global.asax).
This VaryByCustom caching seems to no longer exist in ASP.NET Core. Is there a built-in alternative that I'm missing here or will I need to implement this myself to achieve something similar?