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

请问 cf tunnel 怎么优化?

  •  
  •   iat313 · 185 天前 · 1101 次点击
    这是一个创建于 185 天前的主题,其中的信息可能已经有所发展或是发生改变。

    一个 js ,源文件 2.7k

    家里路由器桥接

    公司 chrome 调试

    1.阿里云突发服务器,https 访问,brotli 压缩,1.7k ,时间 12ms 左右(收费,443 端口)

    2.通过端口转发 http 访问这个 js 地址,gzip 压缩,2.0k ,时间 20ms 左右(免费,非 80 443 端口)

    3.通过 cf tunnel https 访问,brotli 压缩,1.7k ,时间 280ms+(免费,443 端口)

    求 cf tunnel 优化方案

    3 条回复    2023-11-09 12:35:54 +08:00
    taygetus
        1
    taygetus  
       184 天前
    试试 github + jsdelivr
    DefoliationM
        2
    DefoliationM  
       184 天前 via Android
    直接用 cf 的 cdn 吧,还能缓存,缓存后就快了。如果是国内服务器的话,tunnel 的连接会有问题。
    silverwolf
        3
    silverwolf  
       184 天前
    优化不来。站源中国,路由先走英国伦敦,绕地球一圈回你家。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2771 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 02:44 · PVG 10:44 · LAX 19:44 · JFK 22:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.