filipw / Strathweb.CacheOutput

ASP.NET Web API CacheOutput - library to allow you to cache the output of ApiControllers
Other
883 stars 254 forks source link

Question: Any plans to support ASP.NET Core? #217

Open Iamcerba opened 7 years ago

Iamcerba commented 7 years ago

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.

filipw commented 6 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?

mbp commented 6 years ago

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

Iamcerba commented 6 years ago

Also it doesn't work for requests with Authorization header.

naveed-butt commented 5 years ago

Any update on support of Web API .Net Core?

alohaninja commented 5 years ago

@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