Does YARP have a feature for caching http responses having public caching directive? #544
-
Does YARP have a feature for caching http responses having public caching directive? This feature is intended to reduce load on backend servers by caching http responses having public caching directive then using the cache for future http requests. The cache should only be considered for http(s) requests having a “GET” method. The cache match should include both the resource URL together with the query string. The cache should recognize the http response public caching directive including expiration. The cache should store the http response in a compressed format to avoid having to compress for each cache response. A cached response should add a response header indicating that the response was produced by a cache. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You should be able to use ASP.NET Core's existing response caching middleware for this. |
Beta Was this translation helpful? Give feedback.
You should be able to use ASP.NET Core's existing response caching middleware for this.
https://docs.microsoft.com/en-us/aspnet/core/performance/caching/middleware?view=aspnetcore-5.0