I tried several deploys, via github, manually and manually with clean build cache. In all cases, the build is reported as successful. However, the content doesn’t show up properly.
HTTP header last-modified says 8 Jan, whereas content on that page was definitely edited in the past few minutes (on 9 Jan).
Trying the same URL but adding a random querystring param (cache buster) shows the right content. This says that the cache is at fault here.
How can we manually or programmatically clear the cache?
We are using Next.js (next export) on a static site and intermittently getting this error. What happens is our index.html will point at the prior deploy’s JS bundles, causing a blank page to load. Wondering if this is an issue with Render’s Cloudflare configuration?
We have tried the “Clear build cache and deploy” option, but this issue still persists even after doing that (although it temporarily fixes it).
We have mitigated the issue. You shouldn’t see any 404s in the future, and your sites should be serving the latest assets. You do not need to clear the build cache to see the correct behavior.