Revolyssup commented on code in PR #11048:
URL: https://github.com/apache/apisix/pull/11048#discussion_r1527898526
##########
apisix/plugins/proxy-cache/memory_handler.lua:
##########
@@ -213,11 +213,19 @@ function _M.access(conf, ctx)
end
if err then
- core.response.set_header("Apisix-Cache-Status", "MISS")
- if err ~= "not found" then
+ if err == "expired" then
+ core.response.set_header("Apisix-Cache-Status", "EXPIRED")
+
Review Comment:
Can you remove these empty lines?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]