Open Iamcerba opened 7 years ago
Thanks. Out of curiosity, what is it that you are specifically missing in ASP.NET Core out of the box at the moment, that ResponseCache
(https://docs.microsoft.com/en-us/aspnet/core/performance/caching/response) doesn't give you?
ResponseCache
does not cache on the server. It only provides cache headers for the client.
So if you have many different clients calling the same expensive endpoint, you will not gain anything from ResponseCache
Also it doesn't work for requests with Authorization header.
Any update on support of Web API .Net Core?
@naveed-butt - the only output caching I've seen for netcore is by @madskristensen. not sure if it can be adapted to work with web api - but appears to support asp.net mvc
Reference: https://github.com/madskristensen/WebEssentials.AspNetCore.OutputCaching
First of all @filipw thank you for this great library! Absence of ASP.NET Core support one of the points why I still using .net 4 in production at this moment. I didn't find any good alternative and current state of Response Caching Middleware doesn't fit my needs. When I had some free time I have tried to adapt lib for Core 2.0 (link). May be it could be useful for some one, but anyway hope @filipw will update existing package.