Intermittent 404 errors on Existing Files


After using Cloudflare, we get intermittent 404 errors on existing files. We are not sure whether these are caused by Cloudflare or the origin server. So we need to diagnose the issue and find the reason.

One difficulty is that the error occurs intermittently, which can only be observed in a long period, such as one week. However, it will degrade the performance if we disable Cloudflare for one week.

So, are there any one encounter similar issues?

404 Not Found ( RFC7231 )

Origin server was unable or unwilling to find the resource requested. This usually means the host server could not find the resource. To serve a more permanent version of this error one should use a 410 error code.

These errors typically occur when someone mistypes a URL on your site when there is a broken link from another page, when a page that previously existed is moved or removed, or there is an error when a search engine indexes your site. For a typical site, these errors account for approximately 3% of the total page views, but they’re often untracked by traditional analytics platforms like Google Analytics.

Website owners usually implement a custom page to be served when this error is generated.

Cloudflare does not generate 404s for customer websites, we only proxy the request from the origin server. When seeing a 404 for your Cloudflare powered site you should contact your hosting provider for help.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.