I have two domain names registered on AWS Route53, both are configured to point to the same IP address (i.e., they are associated with the same EC2 instance) and are located in the same AWS region. However, I am experiencing a significant difference in response times between the two domains.
Here are the domain names:
- http://laafisoft.bf (very slow, axios requests take around 50 seconds)
- http://laafisoft.org (very fast, axios requests take around 242 milliseconds)
I have verified that the DNS resolution time is negligible and the server configurations are identical for both domains. There are no apparent blockages or misconfigurations on either domain that could explain this disparity in response times.
I would greatly appreciate any insights or suggestions to resolve this issue. It’s becoming quite frustrating. Thank you in advance for your assistance.
2
Answers
It runs perfectly fine for me (I am in Australia):
You might want to try it by specifying a DNS server, such as Google:
That way, you can determine whether the slowness is caused by your chain of DNS servers.
Your problem is due to Google Analytics cookies.
Both websites return quickly when used with
curl
, but the first site is slow when accessed a second time. Removing the_ga
cookies makes it go fast again.Google Analytics was recently changed to GA4, so your site is probably using code that connects to the "old" Google Analytics and that is causing problems.