Aofei Sheng

Results 93 comments of Aofei Sheng

Yeah, you are right. It seems that the `AutoPush` feature needs to be refined. I'll take the time to study it in a few days. BTW, you made a mistake...

Hi @SaulDoesCode, See my new commit 7c0d0bb460c3421332f4875f27f5a0699e330ed7.

In fact, Air handles the caching headers. However, yeah, it doesn't actively add the `cache-control` to the response headers (it's too diverse, isn't it?). Therefore, the best solution at present...

For caching gzipped asset files, I don't think it's worthwhile to let Air produce extra files while it's running (since supporting ACME). After all, those asset files are not that...

Haha, have a good meal. I have some ideas, let me sort it out and I'll reply you tomorrow. It's getting dark, I should go to sleep now.

Hi @mattrubin, Have you ever thought about adding a "recently deleted" stuff? I think it would be better to have a three-day (for example) regret time when deleting an item.

碰巧看到了这个 issue,那我就说一下。 我们目前正在争取使 [goproxy.cn](https://goproxy.cn) 成为 Go 在中国的官方模块代理,而且我上周五我已经和七牛云那边儿完成了交接和数据迁移,包括域名我也已经过户给了他们并由他们进行了备案。现在 [goproxy.cn](https://goproxy.cn) 完全跑在七牛云平台上,且经过 CDN 进行了全球加速,经实际测试它和官方的 [proxy.golang.org](https://proxy.golang.org) 访问速度不相上下(不只是在中国)。而且我这几天还在和七牛云的员工一起为 [goproxy.cn](https://goproxy.cn) 做高可用,所以如果你们愿意的话,它完全够资格成为你们的上游。 ![6545DD1B-87FA-4EA0-A46A-916C44141CA4](https://user-images.githubusercontent.com/5037285/62201800-a7ae0780-b3ba-11e9-846a-27ee9432b43e.jpeg) ![CEA929DB-DED7-4C2C-93E4-1F63AB1C6CF5](https://user-images.githubusercontent.com/5037285/62201824-b4caf680-b3ba-11e9-8b62-7d2b70da5e7f.jpeg)

你好 @pihao,是这样,首先 [goproxy.cn](https://goproxy.cn) 也是支持代理 [sum.golang.org](https://sum.golang.org) 的。 然后为什么做 [goproxy.cn](https://goproxy.cn),有这么几点原因: 1. 我发起 [goproxy.cn](https://goproxy.cn) 时并不知道 [goproxy.io](https://goproxy.io) 的存在,之所以选 ".cn" 这个域名后缀是因为我觉得这个东西基本只在中国需要有第二个版本,在其他地方用 [proxy.golang.org](https://proxy.golang.org) 会让人感觉更加“应该如此”不是吗?所以我才没有查 ".io" 这个后缀有没有被注册过。之所以 [goproxy.cn](https://goproxy.cn) 做的是 CDN 全球加速,是因为我考虑到大家有可能经常在比如 VPN 这种场景下工作,或者偶尔出国旅游啥的,这样做全球加速的话就可以保证大家一直在一个高速 GOPROXY 下工作了 2. 自一开始我就有意把...

@zhsj [goproxy.cn](https://goproxy.cn) 也是全球 CDN 哦 😄

@pihao 最简单的办法,你可以使用像是 [tools.ipip.net/newping.php](https://tools.ipip.net/newping.php) 这种工具来在全球范围发现目标域名的 IP,如果发现无论在哪儿都是指向同一个 IP 的话就可以初步判定为单机了。接着在做考虑,比如谷歌云这种是允许只用一个 IP 就实现 CDN 加速和负载均衡的(我的个人网站 [aofeisheng.com](https://aofeisheng.com) 就是的),所以你还可以看一下刚才的测试结果中目标域名在不同地方的响应时间大概呈现出什么样子,如果具有很明显地偏向某一片区域,那么那个域名所对应的服务器很大可能就是只在那一片区域存在。至于是不是集群,你可以给他来个压力测试。 还有,如果你还有其他问题的话我觉得你还是加一下我的 Telegram 吧([t.me/aofeisheng](https://t.me/aofeisheng)),咱们总在这个 issue 下讨论可能不大好。😄