cf problem

there is no Moving text on my "Domain" only
No description
No description
55 Replies
zegevlier
zegevlier14mo ago
Works for me on your domain
Chaika
Chaika14mo 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
HOP14mo ago
take a photo not works for me in inconget browser
Chaika
Chaika14mo ago
Chrome or Firefox?
Chaika
Chaika14mo ago
Works fine in Firefox
No description
H
HOP14mo ago
is there diffrenece ?
Chaika
Chaika14mo 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
HOP14mo ago
try on chrome
Chaika
Chaika14mo ago
I tested Chrome now as well and it loads fine
H
HOP14mo ago
ok thanks idk why but it works for me
Chaika
Chaika14mo ago
Do you have a Page Rule or a Cache Rule setup to force caching on your custom domain? Those can break stuff
H
HOP14mo ago
wdym ?
Chaika
Chaika14mo 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
HOP14mo ago
how can i do that >
Chaika
Chaika14mo ago
hmm, do what?
H
HOP14mo ago
cache of some level is related
Chaika
Chaika14mo ago
oh, you were saying it suddenly started working, right?
idk why but it works for me
H
HOP14mo ago
only on another window
Chaika
Chaika14mo ago
It works in Chrome, but not Brave?
H
HOP14mo ago
works on brave but i have to cache my data first i dont to do that everytime i change something
Chaika
Chaika14mo 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
HOP14mo 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
Chaika14mo 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
Chaika14mo ago
Anti Anti Debug
Be able to use developer tools again
H
HOP14mo ago
No description
H
HOP14mo ago
yeah
Chaika
Chaika14mo 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
Chaika14mo 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
Chaika14mo 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
HOP14mo ago
did not understand anything but thanks for help
Chaika
Chaika14mo 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
HOP14mo ago
oh i did that but still
Chaika
Chaika14mo 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
HOP14mo ago
No description
H
HOP14mo ago
on the same browser it opens if inconget or another browser
Chaika
Chaika14mo ago
lol that's a very different issue
H
HOP14mo ago
i did not do anything
Chaika
Chaika14mo 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
HOP14mo ago
i just read ur msg then refresh the page
Chaika
Chaika14mo 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
HOP14mo ago
i stopped that and still 405
Chaika
Chaika14mo ago
nothing is instant when it comes to web browser and changes
H
HOP14mo ago
No description
Chaika
Chaika14mo 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
HOP14mo ago
it shows every time i do refresh it opens now but no moving text
Chaika
Chaika14mo 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
HOP14mo ago
i cant install extensions on brave > chrome as well but new chrome profile can
Chaika
Chaika14mo ago
Using a School PC or something?
H
HOP14mo ago
mine school pc has core duo and 1gb ram
Chaika
Chaika14mo 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
HOP14mo ago
i always do somethings i never know or understand what would it to buttoneventer71.js is the buttons check movelook.js
Chaika
Chaika14mo 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
HOP14mo ago
Ok thanks
Want results from more Discord servers?
Add your server