• 请不要在回答技术问题时复制粘贴 AI 生成的内容
iat313
V2EX  ›  程序员

请问 cf tunnel 怎么优化?

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