V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ab
V2EX  ›  Cloudflare

cf + wordpress 请教

  •  
  •   ab · 10 天前 · 388 次点击
    页面规则:
    example.com/hot/* 缓存级别: 缓存所有内容, 边缘缓存 TTL: 2 小时

    缓存规则:
    ( http.request.uri wildcard r"/hot/*") 符合缓存条件 忽略缓存控制标头,使用此 TTL 2 小时

    源服:
    响应:Cache-Control: public, max-age=7200

    Safari 多次请求
    :method: GET
    :scheme: https
    :authority: example.com
    :path: /hot/
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Encoding: gzip, deflate, br
    Accept-Language: zh-CN,zh-Hans;q=0.9
    Priority: u=0, i
    Sec-Fetch-Dest: document
    Sec-Fetch-Mode: navigate
    Sec-Fetch-Site: none
    User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15

    CF 响应:cf-cache-status: MISS/BYPASS(多数为 MISS)
    图片/JS/CSS 则无此问题。
    另外发现,safari/chrome 多次响应为 MISS 的页面,curl 一次即立即缓存,浏览器再测也是 HIT 状态了。

    老哥们,让 CF 节点强制缓存 html ,还需要哪里的设置吗?
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2678 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 11:32 · PVG 19:32 · LAX 04:32 · JFK 07:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.