我的网站设置了 cf 的缓存,但是不想让 cf 缓存 api 接口的数据,我如图配置后,https://chat.xxxhao.info/api/auth/getInfo 这个 get 接口的信息还是走的 cf 的缓存,弄了两天都没有弄好,来请教大佬了,
response header 中看还是命中缓存了
server: cloudflare vary: Accept-Encoding x-cache: HIT x-powered-by: Express

server: cloudflare vary: Accept-Encoding x-cache: HIT x-powered-by: Express

1
MoeWang Jul 18, 2023 via iPhone x-cache 不是 cloudflare 的缓存标识,你需要检查你自己 web 服务器的缓存,cloudflare 的缓存标头有且只有 cf-cache-status
建议查看: https://community.cloudflare.com/t/what-does-x-cache-header-hit-server-mean/143290 |