Q: to vercel infra team... are there different caches for different domains pointed to the same deployment?
We have seen many times now that our root prod domain doesn't show content we expect in a deployment - even though the "source" screen on deployment in the Web UI will show the expected content. Making a request to the same deployment through another domain, or the vercel.app domains will always show the content we expect.
I've tried pointing the root domain to Vercel with both A & CNAME records - doesn't make a difference.
Often we trigger a new build which can solve the problem. But we've also tested that "rollback" to the known "bad" deployment will show the bug again.
To me it seems that there's a Vercel cache "keyed" to both the domainname and deployment. Meaning that the same deployment can show different content based on the domain (with no logic in the codebase to do this). This makes Vercel's preview environments un trustworthy (as PROD could output different code).
I'd be happy to show Vercel staff how we can replicate this.
Also; is there a way to purge Vercel's Edge Cache? I don't see a way (it would make narrowing down this issue easier).