Cloudflare Pages caching two versions of website

Hi, I'm deploying an Angular website on cloudflare pages and it seems to be caching two different versions of my website. When you head to the root URL for the website, it's a really old cached or prerendered version of the actual website, and navigating to another page and going back loads the new page with the new code. I've cleared my cloudflare cache & build cache multiple times and redeployed the new code multiple times also; the issue persists. Anyone know how to fix this issue? No build errors and the website deploys successfully every time.
1 Reply
strikeriv
strikerivOP3w ago
Found the issue. Was building using application instead of browser. Changed that and it works just fine now.
Want results from more Discord servers?
Add your server