Static assets not updating in production despite successful deployment

I'm experiencing an issue with static assets not updating on my Cloudflare Pages production domain, while they work correctly on the development domain. Setup: - Using Vite as the build tool - Assets stored in the public folder
- Deploying the dist folder to Cloudflare Pages Issue: When I update a file in the public folder (same filename, new content) and redeploy: 1. The new asset appears correctly on the dev domain 2. The production domain continues serving the old version Example: - Dev domain (working, shows new image): https://a22590ca.butter-5g9.pages.dev/samples/3pZvP0QR3pt0/0.webp - Production domain (stuck with old image): https://getaidatingphotos.com/samples/3pZvP0QR3pt0/0.webp I've confirmed that: - The deployment completes successfully - The development domain shows the updated content immediately Account Details: - Cloudflare Account ID: 2d0e76e05bb785204f4f720a65f6281b Has anyone encountered this issue before? Is there a way to force Cloudflare Pages to update the static assets in production?
1 Reply
squishycantaloupe
squishycantaloupeOP2mo ago
And to confirm, the dev domain (with the correct asset) is deployed on the prod branch which is alias to my prod domain. E.g, non-asset changes are going through without issue. When visting the prod image url, my browser returns a 304. So maybe that's the issue? Not sure, clearing the browser cache does not solve the issue.

Did you find this page helpful?