为什么自定义域名“myapp.com”这取代了“myapp.appspot.com”与“myapp.appspot.com”比较需要花费很长时间才能加载? [英] Why custom domain "myapp.com" which replaces "myapp.appspot.com" took so long to load when comparing to "myapp.appspot.com"?
问题描述
我买了一个Godaddy域名(speaklikewater.com)来代替( http://1-dot-speaklikewater.appspot.com/ )。
我设置我的Godaddy Domains上的以下8个参数:
输入主机数据
A @ 216.239.32.21
A @ 216.239.34.21
A @ 216.239.36.21
A @ 216.239.38.21
AAAA @ 2001:4860:4802:32 :: 15
AAAA @ 2001:4860:4802: 34 :: 15
AAAA @ 2001:4860:4802:36 :: 15
AAAA @ 2001:4860:4802:38 :: 15
现在,如果我打开( http:/ /1-dot-speaklikewater.appspot.com/ )在任何浏览器和任何时间,然后它会花费1或2秒来加载页面。
现在,如果我在某个浏览器中第一次打开(speaklikewater.com),那么需要15到20秒才能加载。如果我在同一个浏览器中第二次打开它,则需要2-3秒才能加载。
这非常长。
我现在住在VN。
你有同样的问题吗?或我做错了什么? 我找到了答案。
>事实上,当我设置 CNAME
ghs.googlehosted.com
( www
),当输入 www.mydomain.com
时,我的网站速度非常快。但是输入 mydomain.com
时会非常慢。所以,如果我将裸域映射为 mydomain.com
到Google服务器,那么它会非常缓慢&我甚至无法在移动设备上访问 mydomain.com
。这是由于我的电脑在VN必须查找位于美国和加拿大的谷歌服务器。不知何故,这种查找过程如此漫长&造成这个问题。
所以,这里是我的回答,在应用程序引擎中,我设置了CNAMEghs.googlehosted.com(www)而不使用裸域。
在Godaddy中,我将裸域映射到Godaddy服务器&将其指向www.mydomain.com。现在它运行得非常快。
使用ghs.googlehosted.com就像魔术一样。这非常快。
I am currently living in VN & I built my website on Google cloud. Here is the website (http://1-dot-speaklikewater.appspot.com/) (it has not finished yet).
I bought a Godaddy domain (speaklikewater.com) in replacing for (http://1-dot-speaklikewater.appspot.com/).
I setup these 8 following parameters on my Godaddy Domains:
Type Host Data
A @ 216.239.32.21
A @ 216.239.34.21
A @ 216.239.36.21
A @ 216.239.38.21
AAAA @ 2001:4860:4802:32::15
AAAA @ 2001:4860:4802:34::15
AAAA @ 2001:4860:4802:36::15
AAAA @ 2001:4860:4802:38::15
Now, if I open (http://1-dot-speaklikewater.appspot.com/) on any browser and at any time, then it's gonna take like 1 or 2 secs to load the page.
Now, if I open (speaklikewater.com) for first time at a certain browser, then it's gonna take like 15 to 20 secs to load. If I open it the second time in the same browser then it 's gonna take 2-3 secs to load.
This is incredibly long.
I'm living in VN right now.
Do you have the same issue? or have I done anything wrong?
I found the answer.
In fact, when I set up "CNAME
" ghs.googlehosted.com
(www
), my site is extremely fast when enter "www.mydomain.com
"; but it is extrememly slow when enter "mydomain.com
".
So, if I map my naked domain "mydomain.com
" to Google Server then it will be extrememly slow & I couldn't even access mydomain.com
on mobile device. That is due to my PC in VN have to look up the Google server located in US & somehow this looking-up process is so long & caused the problem.
So, here is my answer, in app engine, I set up "CNAME" ghs.googlehosted.com (www) without using naked domain.
In Godaddy, I map my naked domain to Godaddy server & point it to "www.mydomain.com". Now it runs incredibly fast.
Using "ghs.googlehosted.com" is like magic. It's incredibly fast.
这篇关于为什么自定义域名“myapp.com”这取代了“myapp.appspot.com”与“myapp.appspot.com”比较需要花费很长时间才能加载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!