Hi, I have a question regarding the proxy cache plugin.
In nginx there is a way for me to do background validation of cache and
serve stale response until the cache is refreshed in the background using
the following:

proxy_cache_use_stale error timeout invalid_header updating http_500
http_502 http_504;
proxy_cache_background_update on;
proxy_cache_revalidate on;

I see that in apisix proxy cache plugin similar directives do not exist.
Since APISIX is based on nginx, is there a way to achieve the same behavior
with APISIX proxy cache? Basically I'm okay with serving STALE content from
cache for a few seconds when the cache is being revalidated in the
background. This helps me in controlling the number of requests I send to
upstream when the cache just expired and prevents upstream from getting
overwhelmed.

Thanks,
Karthik

Reply via email to