Site works fine under cloudflare's domain, but my own (which is under cloudflare's dns stuff) breaks
I have a site at https://new-site-ahw.pages.dev/ with some basic html, css and js which works fine at the link there.
However, when cloudflare pages uploads to my domain (whih I bought and run under cloudflare) https://new.isophes.com
the html breaks.
Both sites should have the same code inside of them, and it's open source at https://github.com/isophes/new-site
Cloudflare pages pushes to both domains at the same time, so why does the pages.dev link work and mine doesn't?
GitHub
GitHub - iSophes/new-site: Updated portfolio (help)
Updated portfolio (help). Contribute to iSophes/new-site development by creating an account on GitHub.
19 Replies
This is how the domain is setup (new.isophes.com)
There aren't any build commands
broken how?
wait tf
It looks like you're using consistent js/css names so it's probably just a custom domain caching issue, but want to understand how its broken
oh its just outdated?
maybe its my browser??
browser cache could be part of it, the other unique part of it is Cloudflare cache which only happens on custom domain
whats the cloudflare cache
just caches all the css/js by url
i doubt it can be that?
I very much think it could
okay how do i stop or reset that
it's unnecessary w/ Pages since it has its own internal cache. If you go to your website in Cloudflare dash, Caching -> Cache rules -> create rule
Magic Link: https://dash.cloudflare.com/?to=/:account/:zone/caching/cache-rules/new, you can do
Hostname
eq
new.isophes.com
, then just Cache Eligibility -> Bypass cachelets see
ok so ive done that, on chrome it's fine but on my firefox it's still the old site with some broken html
resetting the data for firefox just doesnt work
so weird tf
shift+refresh or try incongito
ahhhh
ty
wait will anyone else who has visited before need to do that or just me
shift+refresh would have worked because it force cleared cache. It should be fine moving forward as there's no extra cache anymore
thanks!