cloudflare不缓存规则

senhuo 86

业务全线上了cloudflare,但是很多项目无法正常加载!
先用最简单的方式各种站点如果登录了,有cookie值就不缓存!
所以需要手动去看每个项目的登录后与没登录的情况,然后整理了以下:包含了wp程序

(http.request.uri.path contains "admin") or (http.request.uri.path contains "login") or (http.cookie contains "wordpress_logged_in_") or (http.cookie contains "wordpress_sec_") or (http.cookie contains "user_token") or (http.cookie contains "__51vcke__") or (http.cookie contains "admin_token") or (http.request.uri.path contains "post") or (http.request.uri.query contains "act") or (http.request.uri.path contains "preview=true") or (http.cookie contains "comment") or (http.request.uri.query contains "out_trade_no")

用了or非and,即满足其中一个条件都不会缓存!这是我整理的相关不缓存的cookie以及url路径的记录~

分享