V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
julyclyde
V2EX  ›  WordPress

求推荐,面向 CDN 优化的方法

  •  
  •   julyclyde · Nov 11, 2023 · 1645 views
    This topic created in 907 days ago, the information mentioned may be changed or developed.

    打算套上 cloudflare 但是并不想开收费套餐,所以也没办法用 cloudflare 提供的 wordpress 插件

    在这种前提下,有什么方法可以优化一下 wordpress 的输出吗? 直接访问 origin 服务器的 header ,看起来似乎也没明说可以还是不可以缓存,不知道 cloudflare 咋判断的,给了 DYNAMIC

    目前经过 cloudflare 之后的 header: cf-cache-status: DYNAMIC

    3 replies    2023-11-16 16:05:59 +08:00
    Conantv2
        1
    Conantv2  
       Nov 11, 2023
    免费版也可以用 WP 插件,只是功能少,但是也有用的。免费版可以使用自动清除缓存功能。

    博客 CDN 优化方法就是除了后台和评论接口路径,其他全部缓存,通过插件在内容更新时通知 CDN 刷新对应路径的缓存。
    julyclyde
        2
    julyclyde  
    OP
       Nov 12, 2023
    @Conantv2 哦,那我试试
    插件是负责通知清除缓存的?
    julyclyde
        3
    julyclyde  
    OP
       Nov 16, 2023
    @Conantv2 免费版开启了,也 apply 了
    但是 header 还是 cf-cache-status: DYNAMIC

    需要手工在 nginx 里加 header 吗?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1015 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 19:00 · PVG 03:00 · LAX 12:00 · JFK 15:00
    ♥ Do have faith in what you're doing.