I am building an pure json api and I want to cache response according to post params. Is there any similar way like VaryByQueryKeys? Maybe some custom cache middleware or?
Of course I can use MemoryCache but wonder maybe there is some "build in" practice.
Check this thread here: WebAPI caching for http Post
Do you really need HttpPost request to fulfill your requirements? Have you considered using GET request and then leverage client side caching?