503 Service Unavailable, 504 Gateway timeout.
Hi, we are using cloudflare pages plans (business) and I am facing a problem that seems to come directly from cloudflare.
I have already done all the necessary checks to verify that the problem is not from our side (at least partially).
as you can see in the order of the images, cloudflare pages (ORIGIN) is responding correctly, however in the EDGE I get 503, 504 errors randomly especially when the request comes from earlyHintsCache, however I have disabled it and I still have this problem.
Errors 499, 503 are properly logged in WAF, however error 504 is not logged in WAF, it is as if it never happened.
I have about 5 rules applied especially cache, I have added the website in development mode and also the problem occurs, I have tried to move the api to closer places and also occurs.
my flow is as follows:
request->web[astrojs]->fetch(graphql[backend-in-aws])->user
the problem has been going on since day 3, nothing has been modified since that day.




18 Replies
504 & earlyHintsCache can be ignored
Cloudflare Docs
Early Hints · Cloudflare Pages docs
Early Hints help the browser to load webpages faster. Early Hints is enabled automatically on all pages.dev domains and custom domains.
thank you for replying, I have spoken to support. It is a cloudflare problem. I have switched to vercel for testing and everything works. (vercel)


since switching to vercel, no more 503 errors have been registered on the edge.

the problem with the error is that, the origin responds 200, but the edge responds 503, which makes me lose impressions in adsense.
and I disabled the earlyHintsCache and it doesn't work or improve either. it keeps failed.
it seems that the cloudflare edge servers are having degradation and performance problems.
i'd still need more info to see what the issue is - can you give the zone?
zone?
account id?
you can't disable early hints for Pages, it'll always happen but the 504s are not sent to eyeballs and do not impact anything
I wish we didn't show them at all in logs/analytics but we do today
the 504 error is affecting me.
the domain
the 504 is 100% not unless there's some not from early hints
but i'd need more info to look
For example, if google bot enters, and I receive the 504, the google bot detects the url down, and disables the ads.


I send it to you privately?
it is affecting me too much, this started to happen on 3/10/2025 or so.
google contacted me on 3/10/2025 advising me that I should talk to my provider, as they are having a lot of problems.
you can dm me yeah but i will reply back here
oh yes
np