Custom Domain running old code

This is bewildering me, I set up a custom domain for my app and set up the cname, and it works fine until i edit the code.

Previewing on the glitch.me url runs the code, but the domain runs the code from when i added it. I had the domain removed and re added it and it ran the new code but not any edits after that.

I have other projects where this does not happen to and i dont understand why and dont want to be resetting the domain link every other day.

For me, sometimes, Glitch takes a bit longer for the website content to actually update.

Hi @Bitman, how did you set up the custom domain for your app? It sounds like the old version is being cached when you make a request via the domain, and that cached version is what your browser is showing.

Caching could be happening in your browser, or it could be happening if you’re using something like CloudFlare.

1 Like

I am using Namecheap. But it only does it for this app which is confusing me. i have several apps with domains and none have any different settings but this one in question is behaving differently

Hmm, that’s unexpected. If you’re willing to share the name of the affected project, we can take a look; if you’d prefer to keep that private, you can isntead send it to support@glitch.com with a link to this forum topic for us to investigate.