How Cloudflare cached a 404 and blocked a new page for nearly an hour
The team behind Escrozon, a digital asset escrow marketplace, discovered that a newly deployed landing page kept returning 404 errors to visitors for close to an hour despite a successful deployment. The root cause was Cloudflare caching a 404 response that the team had inadvertently triggered by checking the new URL before it went live. Because their Cloudflare cache rule applied a one-hour edge TTL to all HTML responses including error pages, the stale 404 persisted at Cloudflare's edge even after the origin server began correctly serving the page. The issue was further complicated by Cloudflare's per-data-center caching, meaning users in different regions saw inconsistent results. To prevent recurrence, the team recommends avoiding pre-deploy requests to public URLs, setting short or no-cache TTLs for 4xx responses, and automating cache purges as part of the deployment pipeline.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in