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

2017-12-04 20:41:42 +08:00
 hansnow
事情的起因在这里: https://github.com/ant-design/ant-design/issues/8427#issuecomment-348924818

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

测试方法是,在 vps 上输入 wget https://unpkg.com/antd@2.13.11/dist/antd-with-locales.js ,然后查看下载下来的文件大小,如果不是 3.1MB ,那就说明内容少了。
1820 次点击
所在节点    问与答
6 条回复
jaleo
2017-12-04 21:05:49 +08:00
HK 只有 1.9MB SG 是正常的
hansnow
2017-12-04 21:35:05 +08:00
@jaleo 谢谢~和我自己测试的结果一致~
bazingaterry
2017-12-04 22:02:02 +08:00
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
2017-12-04 22:04:47 +08:00
@bazingaterry 谢谢,看起来阿里 HK 的机器大概率有这个问题
just1
2017-12-04 22:57:05 +08:00
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
2017-12-05 11:05:41 +08:00
@Am:~$ wget https://unpkg.com/antd@2.13.11/dist/antd-with-locales.js
--2017-12-05 11:03:55-- https://unpkg.com/antd@2.13.11/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:~$

哎??

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/411944

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX