kayx23 opened a new pull request, #9969: URL: https://github.com/apache/apisix/pull/9969
### Description Added docs as per https://github.com/apache/apisix/issues/9957 ### Checklist - [x] I have explained the need for this PR and the problem it solves - [x] I have explained the changes or the new features added to this PR - [ ] I have added tests corresponding to this change - [x] I have updated the documentation to reflect this change - [ ] I have verified that this change is backward compatible (If not, please discuss on the [APISIX mailing list](https://github.com/apache/apisix/tree/master#community) first) ### Test ```bash $ curl http://127.0.0.1:9180/apisix/admin/routes/1 \ -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "uri": "/ip", "plugins": { "proxy-cache": { "cache_strategy": "memory", "cache_zone": "memory_cache", "cache_ttl": 10 } }, "upstream": { "nodes": { "httpbin.org": 1 }, "type": "roundrobin" } }' {"key":"/apisix/routes/1","value":{"id":"1","update_time":1691137580,"strip_path_prefix":false,"status":1,"upstream":{"nodes":{"httpbin.org":1},"type":"roundrobin","hash_on":"vars","pass_host":"pass","scheme":"http"},"priority":0,"create_time":1690796578,"uri":"/ip","plugins":{"proxy-cache":{"cache_ttl":10,"cache_strategy":"memory","cache_zone":"memory_cache","cache_control":false,"hide_cache_headers":false,"cache_key":["$host","$request_uri"],"cache_method":["GET","HEAD"],"cache_http_status":[200,301,404]}}}} ``` ```bash $ curl -i http://127.0.0.1:9080/ip HTTP/1.1 200 OK Apisix-Cache-Status: MISS Date: Fri, 04 Aug 2023 08:26:49 GMT ... { "origin": "192.168.112.1, 34.xxx.xxx.xxx" } ``` ```bash $ curl -i http://127.0.0.1:9080/ip HTTP/1.1 200 OK Apisix-Cache-Status: HIT Age: 5 Date: Fri, 04 Aug 2023 08:26:49 GMT ... { "origin": "192.168.112.1, 34.xxx.xxx.xxx" } ``` -- 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]
