Depending on my network, I'm incorrectly served different responses from pages

pages.dev: garden-frontend.pages.dev custom domain: allatradgardar.se account ID: a9b7ddc7f911b443856daf4d12413e08 I have started developing a remix app that I'm deploying to CF Pages. I have attached a custom domain to my pages app. When I'm on my home network, and access the custom domain, I'm getting the correct page -reflecting the most recent deployment. When I'm accessing the [app-name].pages.dev I'm getting that same content regardless of network. The really weird thing is that from some other networks (a friend tried, and the same thing when hotspoting from my phone) I'm getting completely different content when going to the custom domain. From this other network I'm still getting the correct content from the most recent build when accessing [app-name].pages.dev The page that I'm incorrectly served is a very early (possibly the first) version of the app that I deployed, basically just blank page with my intended site name in the page title (so I know that this is my content, just not the recent one) To get out of this I have: 1. Purged the cache for the custom domain using the CF control panel 2. Re-run the deployment 3. Pushed a new version of my code and had it deployed, the re-run that deployment. 4. Confirmed using nslookup on my local machine, that the custom domain resolves to the same IP (cloudflare) on both networks As far as I can tell I'm connecting to the right place from both networks, but something on the cloudflare side is choosing to serve different content. Any ideas on how to proceed?
13 Replies
arvidarvidarvid
arvidarvidarvid4mo ago
I now tried to turn off the proxy on the CNAME record pointing allatradgardar.se to garden-frontend.pages.dev and as far as I can tell that resolved the issue. I have yet to have someone other than my own phone network validate that it fixed it. however - did turning the proxy off now mean that the domain is "unprotected" from other cloudflare support services? nevermind, just checked on my wife's phone on another network and she still gets the blank page on allatradgardar.se while getting the correct page on garden-frontend.pages.dev so yeah, the problem is still there, just seemed to shift on the zone or whatever that my own phone was on
Chaika
Chaika4mo ago
dns cache can be a really long time, some ISPs force 24 hours or so
Purged the cache for the custom domain using the CF control panel
You did purge everything for that domain? The other possiblity is it's deleted assets cache if your old website had something like home.html but new is an SPA
arvidarvidarvid
arvidarvidarvid4mo ago
This has been an issue for 2 days though, is it likely that changing from proxied to DNS only is the solution - but that that fix takes time to propagate?
Chaika
Chaika4mo ago
yea, changing from proxied -> dns only could take a while due to dns cache
arvidarvidarvid
arvidarvidarvid4mo ago
>The other possiblity is it's deleted assets cache if your old website had something like home.html but new is an SPA This is very possible - but if that's the case - how do I delete old traces of old cached items?
arvidarvidarvid
arvidarvidarvid4mo ago
I used this and clicked "Purge everything"
No description
Chaika
Chaika4mo ago
you can't in that case, the cache lives on the pages.dev with no way to clear. That would only be the case if you were requesting a now deleted file/item though
We will insert assets into the cache on a per-data center basis. Assets have a time-to-live (TTL) of one week but can also disappear at any time. If you do a new deploy, the assets could exist in that data center up to one week.
https://developers.cloudflare.com/pages/configuration/serving-pages/
arvidarvidarvid
arvidarvidarvid4mo ago
ah ok, so this could possibly just pass on it's own in another week 🙂 that is not a problem, I'm not taking this site live this week - just wanted to make sure that I understood the issue in case it resurfaces once we're live
Chaika
Chaika4mo ago
but again that would only be if you were requesting a now deleted file/asset, not a now updated hard to tell though because I don't see the old page I don't think, it's all per datacenter so very geo specific
Chaika
Chaika4mo ago
No description
arvidarvidarvid
arvidarvidarvid4mo ago
yeah, that's what I'm expecting you to see right now I'm having a hard time reproducing it myself as well now - seems to have resolved itself when connecting form my cell provider still incorrect on my wife's phone though 🤷‍♂️
Chaika
Chaika4mo ago
that cache would be evicted far before a week if you didn't request it for a few hours
arvidarvidarvid
arvidarvidarvid4mo ago
but ok, I'll give it a few more days and if it's still an issue in a week I'll keep looking! thanks a ton!