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
- Deploying the
Issue:
When I update a file in the
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):
- Production domain (stuck with old image):
I've confirmed that:
- The deployment completes successfully
- The development domain shows the updated content immediately
Account Details:
- Cloudflare Account ID:
Has anyone encountered this issue before? Is there a way to force Cloudflare Pages to update the static assets in production?
Setup:
- Using Vite as the build tool
- Assets stored in the
public folder - Deploying the
dist folder to Cloudflare PagesIssue:
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.webpI've confirmed that:
- The deployment completes successfully
- The development domain shows the updated content immediately
Account Details:
- Cloudflare Account ID:
2d0e76e05bb785204f4f720a65f6281bHas anyone encountered this issue before? Is there a way to force Cloudflare Pages to update the static assets in production?
