V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
hansnow
V2EX  ›  问与答

有阿里云香港机器的同学,能帮我试一个东西吗?

  •  
  •   hansnow · 2017-12-04 20:41:42 +08:00 · 1805 次点击
    这是一个创建于 2342 天前的主题,其中的信息可能已经有所发展或是发生改变。
    事情的起因在这里: https://github.com/ant-design/ant-design/issues/8427#issuecomment-348924818

    大概就是,我发现我的阿里香港 VPS 下载 unpkg 上的某个文件的时候,会缺少内容。

    测试方法是,在 vps 上输入 wget https://unpkg.com/[email protected]/dist/antd-with-locales.js ,然后查看下载下来的文件大小,如果不是 3.1MB ,那就说明内容少了。
    第 1 条附言  ·  2017-12-05 11:08:58 +08:00
    基本确定是 cloudflare 的问题了,香港区的主机似乎都会遇到这个问题
    6 条回复    2017-12-05 11:05:41 +08:00
    jaleo
        1
    jaleo  
       2017-12-04 21:05:49 +08:00   ❤️ 1
    HK 只有 1.9MB SG 是正常的
    hansnow
        2
    hansnow  
    OP
       2017-12-04 21:35:05 +08:00
    @jaleo 谢谢~和我自己测试的结果一致~
    bazingaterry
        3
    bazingaterry  
       2017-12-04 22:02:02 +08:00   ❤️ 1
    Connecting to unpkg.com (unpkg.com)|2400:cb00:2048:1::6810:7caf|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 2030592 (1.9M) [application/javascript]
    Saving to: 'antd-with-locales.js'

    antd-with-locales.js 100%[=================================================>] 1.94M --.-KB/s in 0.1s

    2017-12-04 22:01:24 (18.9 MB/s) - 'antd-with-locales.js' saved [2030592/2030592]
    hansnow
        4
    hansnow  
    OP
       2017-12-04 22:04:47 +08:00
    @bazingaterry 谢谢,看起来阿里 HK 的机器大概率有这个问题
    just1
        5
    just1  
       2017-12-04 22:57:05 +08:00 via Android   ❤️ 1
    HTTP/1.1 200 OK
    Date: Mon, 04 Dec 2017 14:55:36 GMT
    Content-Type: application/javascript
    Content-Length: 2030592
    Connection: keep-alive
    Access-Control-Allow-Origin: *
    Cache-Control: public, max-age=31536000
    Last-Modified: Sat, 02 Dec 2017 10:08:33 GMT
    Etag: W/"1efc00-16016b2ee11"
    Via: 1.1 vegur
    CF-Cache-Status: HIT
    Strict-Transport-Security: max-age=15552000; includeSubDomains; preload
    X-Content-Type-Options: nosniff
    Server: cloudflare-nginx
    CF-RAY: 3c7f9b8ccfac3289-HKG

    看起来是这个 cf 节点的缓存出错了
    SeonMe
        6
    SeonMe  
       2017-12-05 11:05:41 +08:00   ❤️ 1
    @Am:~$ wget https://unpkg.com/[email protected]/dist/antd-with-locales.js
    --2017-12-05 11:03:55-- https://unpkg.com/[email protected]/dist/antd-with-locales.js
    Resolving unpkg.com (unpkg.com)... 104.16.124.175, 104.16.122.175, 104.16.125.175, ...
    Connecting to unpkg.com (unpkg.com)|104.16.124.175|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 2030592 (1.9M) [application/javascript]
    Saving to: ‘ antd-with-locales.js ’

    antd-with-locales.js 100%[============================================>] 1.94M --.-KB/s in 0.03s

    2017-12-05 11:03:55 (57.1 MB/s) - ‘ antd-with-locales.js ’ saved [2030592/2030592]

    @Am:~$

    哎??
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2220 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 04:40 · PVG 12:40 · LAX 21:40 · JFK 00:40
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.