Current Behavior
inconsistent response headers for in-memory and on-disk cache when the cache expires.
- for on disk strategy, the header shows
Apisix-Cache-Status: EXPIRED
- for in memory strategy, the headers shows
Apisix-Cache-Status: MISS
Expected Behavior
Same header value for both caching strategies when the cache expires.
Steps to Reproduce
disk based caching
- Enable
proxy-cache on a route and configure it to use disk based caching
- Send a few requests and observe caching in effect
- Wait for the cache to expire after TTL and send another request, to observe
Apisix-Cache-Status: EXPIRED header
in memory caching
- Enable
proxy-cache on a route and configure it to use disk based caching
- Send a few requests and observe caching in effect
- Wait for the cache to expire after TTL and send another request, to observe
Apisix-Cache-Status: MISS header
Environment
- APISIX version (run
apisix version): 3.8.0
Current Behavior
inconsistent response headers for in-memory and on-disk cache when the cache expires.
Apisix-Cache-Status: EXPIREDApisix-Cache-Status: MISSExpected Behavior
Same header value for both caching strategies when the cache expires.
Steps to Reproduce
disk based caching
proxy-cacheon a route and configure it to use disk based cachingApisix-Cache-Status: EXPIREDheaderin memory caching
proxy-cacheon a route and configure it to use disk based cachingApisix-Cache-Status: MISSheaderEnvironment
apisix version): 3.8.0