I'm new to web development and have encountered an issue with the loading times of my web app, which I'm hoping to get some help with.
Background:
I developed a web app accessible at https://solo-fsw.shinyapps.io/lavaangui/. I wanted a simpler URL, so I purchased http://lavaangui.org/ from Namecheap and pointed this to https://solo-fsw.shinyapps.io/lavaangui/.
Issue: I've noticed a significant difference in loading times between the two URLs:
- The original URL (
https://solo-fsw.shinyapps.io/lavaangui/) loads in about 1 second. - The new URL (
http://lavaangui.org/) takes approximately 5 seconds to load, with a lot of variance. Sometimes it loads much faster and sometimes it takes > 10 seconds.
Attempts to Resolve: Initially, I thought the issue might be with Namecheap's DNS servers, so I switched the nameservers to Cloudflare. However, the problem persists even after this change.
Any insights or suggestions on how to diagnose and fix this issue would be greatly appreciated!
Tags: web-hosting, dns, performance, cloudflare, namecheap
This is hard to answer without knowledge of internal, but looks like your address
https://solo-fsw.shinyapps.io/lavaangui/pointing to some IP addresses, and you create a new one DNS recordhttp://lavaangui.org/and pointing to the same Ip addresses, I'm right?if so, I think the issue can be in some internal logic, which check your HTTP header, in that case you can override it via Cloudflare "Transform Rules" option, how described here https://developers.cloudflare.com/rules/transform/request-header-modification/create-dashboard/
Also, as a second option you can try to create a CNAME record with Name
lavaangui.organd Targetsolo-fsw.shinyapps.io, maybe it will be sutable for you.