V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
iat313
V2EX  ›  程序员

请问 cf tunnel 怎么优化?

  •  
  •   iat313 · Nov 9, 2023 · 1963 views
    This topic created in 908 days ago, the information mentioned may be changed or developed.

    一个 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 replies    2023-11-09 12:35:54 +08:00
    taygetus
        1
    taygetus  
       Nov 9, 2023
    试试 github + jsdelivr
    DefoliationM
        2
    DefoliationM  
       Nov 9, 2023 via Android
    直接用 cf 的 cdn 吧,还能缓存,缓存后就快了。如果是国内服务器的话,tunnel 的连接会有问题。
    silverwolf
        3
    silverwolf  
       Nov 9, 2023
    优化不来。站源中国,路由先走英国伦敦,绕地球一圈回你家。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1046 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 17:30 · PVG 01:30 · LAX 10:30 · JFK 13:30
    ♥ Do have faith in what you're doing.