Cloudflare的反向代理指定post接口怎么配置
Cloudflare的反向代理可以使用Page Rules来指定post接口。
-
登录Cloudflare账户,进入对应的网站。
-
点击左侧菜单栏中的“Page Rules”。
-
点击“Create Page Rule”按钮。
-
在“If URL matches”中输入需要指定的post接口的URL,例如:https://example.com/api/post。
-
在“Then the settings are”中选择“Cache Level: Bypass”,这将禁用Cloudflare缓存该接口的响应。
-
点击“Save and Deploy”按钮保存设置。
完成以上步骤后,Cloudflare将不会缓存指定的post接口,而是直接将请求转发到源服务器。
原文地址: https://www.cveoy.top/t/topic/Ka2 著作权归作者所有。请勿转载和采集!