CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features.
The problem is we had used the below Ocelot JSON to cache the response and it's holding the data for one full day (86400 secs). here is suppose to get some errors during the services call like(500,502,499...). what happened is the cached error response was not even updated till one full day even the services issue got resolved.
So we are looking for the gateway to cache only success and not the failure cases. It should be hit services till when its bring success(200).
Is there any option in OCELOT to restrict caching based on the HTTP Status code like 500, 502, 503, 499..etc?
The problem is we had used the below Ocelot JSON to cache the response and it's holding the data for one full day (86400 secs). here is suppose to get some errors during the services call like(500,502,499...). what happened is the cached error response was not even updated till one full day even the services issue got resolved.
So we are looking for the gateway to cache only success and not the failure cases. It should be hit services till when its bring success(200). Is there any option in OCELOT to restrict caching based on the HTTP Status code like 500, 502, 503, 499..etc?