Why is my React application not updating

I have deployed a React application to Cloudflare pages successfully. When I navigate to the new deployment link, the application is updated with new version changes, but when I navigate to the custom domain that was set up, I see an old version of the application. I tried with clearing the cache via purge cache but there was no effect. How do I fix this ?

1 Like

This happened to me too. The cloudflare *.pages.dev one updated, but not the one I had routed through my custom domain. The issue was caching. If the subdomain is routed through Cloudflare’s proxy, it has caching enabled. The pages.dev one will get updated, but the custom one is cached.

Very simple solution - purge cache on the custom domain.