cf problem

there is no Moving text on my "Domain" only
No description
No description
55 Replies
zegevlier
zegevlier7mo ago
Works for me on your domain
Chaika
Chaika7mo ago
It loads fine for me, but in general there are a few differences between pages.dev and Custom Domains which can cause issues: Auto-Minify Html can break frameworks like Nuxt.js, disable under Speed -> Optimization -> Content Optimizations -> Auto Minify. Rocket Loader can cause issues as well (and isn't going to help most modern websites), you can disable there as well. If you are forcing cache with a Page Rule or Cache Rule, it can also break things
H
H7mo ago
take a photo not works for me in inconget browser
Chaika
Chaika7mo ago
Chrome or Firefox?
Chaika
Chaika7mo ago
Works fine in Firefox
No description
H
H7mo ago
is there diffrenece ?
Chaika
Chaika7mo ago
Sometimes there can be browser specific issues, they both implement the specs in different ways. I tested Chrome now as well and it loads fine
H
H7mo ago
try on chrome
Chaika
Chaika7mo ago
I tested Chrome now as well and it loads fine
H
H7mo ago
ok thanks idk why but it works for me
Chaika
Chaika7mo ago
Do you have a Page Rule or a Cache Rule setup to force caching on your custom domain? Those can break stuff
H
H7mo ago
wdym ?
Chaika
Chaika7mo ago
eh nvm I don't see any caching like that. I would guess cache of some level is related if it just suddenly started working If it fails to load in the future, I would check your browser console for errors
H
H7mo ago
how can i do that >
Chaika
Chaika7mo ago
hmm, do what?
H
H7mo ago
cache of some level is related
Chaika
Chaika7mo ago
oh, you were saying it suddenly started working, right?
idk why but it works for me
H
H7mo ago
only on another window
Chaika
Chaika7mo ago
It works in Chrome, but not Brave?
H
H7mo ago
works on brave but i have to cache my data first i dont to do that everytime i change something
Chaika
Chaika7mo ago
You mean whenever you make a change to the site, you have to clear your browser cache? Do you see any errors in Console when it fails to load?
H
H7mo ago
You mean whenever you make a change to the site, you have to clear your browser cache?
yeah I have to I disabled dev-tools
Chaika
Chaika7mo ago
oh you're talking about how you blocked them on the site? a bit silly if you do something you don't even know how to get around lol
Chaika
Chaika7mo ago
Anti Anti Debug
Be able to use developer tools again
H
H7mo ago
No description
H
H7mo ago
yeah
Chaika
Chaika7mo ago
you're using static js/css names, which is probably causing the issue here. They're being cached and preventing you from getting the updated versions
Chaika
Chaika7mo ago
You can create a cache rule (Cf Dashboard -> go to your domain -> Caching -> Cache Rules -> New, or Magic Link: https://dash.cloudflare.com/?to=/:account/:zone/caching/cache-rules/new), with Hostname eq pain.lol, disable cache, ex:
No description
Chaika
Chaika7mo ago
Pages already has cache under the hood, it's just the default cache settings that sometimes get in the way. If you were using a framework that auto-generated js/css files using file hashes in the name no issue, but since you're using static file names for your css/js, they get cached and keep the old version on updates Probably didn't break for us since Cache is per browser and per Cloudflare location, and we had never visited the site before
H
H7mo ago
did not understand anything but thanks for help
Chaika
Chaika7mo ago
Pages.dev has no cache, pulls directly from Pages data store everytime Your Custom Domain has default cache, not for html, but for specific assets like css/js
H
H7mo ago
oh i did that but still
Chaika
Chaika7mo ago
That looks better, no new caching now at least. If you purge browser cache now, do another update, do you still get stuck in the same issue? (Old browser cache would still stick around even after you apply that, it's not a magical retroactive change, Maybe do an update to remove the anti-dev tools blocking so you can actually see whats erroring in console lol)
H
H7mo ago
No description
H
H7mo ago
on the same browser it opens if inconget or another browser
Chaika
Chaika7mo ago
lol that's a very different issue
H
H7mo ago
i did not do anything
Chaika
Chaika7mo ago
wonder if it's because you have Under Attack Mode enabled (btw why? You get unlimited static requests), and you hit f5 to resend the POST Request which actually hits your origin/pages this time
H
H7mo ago
i just read ur msg then refresh the page
Chaika
Chaika7mo ago
yea unlikely to be related to your other issues I would disable Under Attack Mode/stop challenging every visitor and see if you don't hit it again. I think you just got hit by what I said, you hit F5 (it should warn you unless you bypassed it) and it resent the POST Request but it hit your origin this time (Pages) and not CF Challenge which caused that
H
H7mo ago
i stopped that and still 405
Chaika
Chaika7mo ago
nothing is instant when it comes to web browser and changes
H
H7mo ago
No description
Chaika
Chaika7mo ago
give it at least a minute to propagate lol, and you'd need to close that tab at least and retry otherwise your browser would keep trying to resend hmm yea that's what I'm talking about Part of solving the challenge is a POST Request with the solve
H
H7mo ago
it shows every time i do refresh it opens now but no moving text
Chaika
Chaika7mo ago
Yea, it's because when you solve the challenge it sends a POST Request with the solve details. If you Refresh/F5 your browser is telling you "Hey, you POST Requested to get this page in the first place, refreshing could repeat the same action to get the same page", but the problem is Pages rejects POST Requests with a 405, and you're not hitting the challenge solve path since you already solved it. Anyway, you fixed it by disabling challenging everyone, just needed to give it a sec to propagate & new tab Anything errors/etc in Console?
H
H7mo ago
i cant install extensions on brave > chrome as well but new chrome profile can
Chaika
Chaika7mo ago
Using a School PC or something?
H
H7mo ago
mine school pc has core duo and 1gb ram
Chaika
Chaika7mo ago
then there's no reason why you shouldn't be able to install extensions, unless you purposefully blocked yourself anyway I see this error in console
Uncaught SyntaxError: Identifier 'buttons' has already been declared (at buttoneventer71.js:1:1)
It still loads the text but could be something to look at
H
H7mo ago
i always do somethings i never know or understand what would it to buttoneventer71.js is the buttons check movelook.js
Chaika
Chaika7mo ago
there's no errors from that js, and it looks ok If your browser already has weird issues you don't understand, trying to fix something around it sounds like a bad starting point lol It really could be just some weird edge-case JS Error or something along that track. Looking at the browser console is just by far the easiest way to find anything like that, disable the silly anti-dev tools stuff and then see. Otherwise it's just guessing as I can't repro it on my side even when I was testing with Brave
H
H7mo ago
Ok thanks