qiufengfeng commented on issue #11644:
URL: https://github.com/apache/apisix/issues/11644#issuecomment-2410999531

   > ### Description
   > The problems I encountered when using the proxy-cache plugin. How to 
implement not caching content when the response body size is 0. when the body 
is empty, i think it can not be cached. i have try set var on header_filter or 
body_filter stage , but they all not work.
   > 
   > ### Environment
   > * APISIX version (run `apisix version`):
   > * Operating system (run `uname -a`):
   > * OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   > * etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   > * APISIX Dashboard version, if relevant:
   > * Plugin runner version, for issues related to plugin runners:
   > * LuaRocks version, for installation issues (run `luarocks --version`):
   
   we can change ngx.status on header_filter stage to solve this problem


-- 
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]

Reply via email to