namdiag commented on issue #9688:
URL: https://github.com/apache/apisix/issues/9688#issuecomment-1596761148

   > @namdiag
   > 
   > 1. For the first issue around 405, the annotation 
`k8s.apisix.apache.org/http-allow-methods` is supported only on 
response-rewrite plugin. Do you have that plugin configured as well?
   > 2. For the issue around 404, that is by design. Because it doesn't make 
sense to PURGE something that doesn't exist. Returning 200 in that case will be 
misleading. Client should make sure something exists before it tries to PURGE 
it.
   
   1. I believe you're not correct about the http-allow-methods only available 
on response-rewrite plugin, please double check the document of 
response-rewrite plugin and also how to create a route and enable the 
http-allow-method here https://apisix.apache.org/docs/apisix/admin-api/#route . 
The annotation is no different than manual create route and add parameter to it.
   2. Please reread the problem, it's not about how it's response, but how it 
return error on every subsequence call with other method like GET, POST, 
meaning the PURGE method which can call from outside world can cause total 
error on this routes,  Thus render the proxy_cache plugin useless. make API 
Gateway panic.


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