雨云的CDN并没有给用户清除缓存的选项,想清除缓存的话其实挺麻烦的。
通过浏览器对网站的请求头我们可以看到,CDN的服务器是apache apisix

通过查阅apisix有关缓存的文档,我们可以发现清除缓存的方法:
https://apisix.apache.org/zh/docs/apisix/2.13/plugins/proxy-cache
$ curl -i http://127.0.0.1:9080/hello -X PURGE
HTTP/1.1 200 OK
Date: Tue, 03 Mar 2020 11:17:35 GMT
Content-Type: text/plain
Transfer-Encoding: chunked
Connection: keep-alive
Server: APISIX web server

实测有效,但我心里还是默念一句这是真的不安全……一点鉴权措施都没有,分分钟被缓存击穿
文章评论