Developer documents three silent Cloudflare Pages pitfalls affecting caching and redirects
A developer running a static browser-games site on Cloudflare Pages discovered that custom Cache-Control headers for JavaScript data files are silently overridden by the platform, which enforces its own max-age of 14,400 seconds regardless of _headers rules. A separate investigation revealed that redirect rules beyond approximately the 104th entry in a _redirects file are silently ignored, with no build error or warning issued, regardless of file size. Additionally, deleting pages from the site did not immediately remove them from the shared cache, meaning plain requests continued returning stale 200 responses for up to seven days post-deploy. The developer resolved the caching issue by appending content hashes to asset URLs, used a canary redirect rule to verify the full file is active after each deploy, and recommended cache-busting query strings when confirming page deletions. These findings were measured on the site 360playzone.com in August 2026 and shared to help other developers avoid the same silent failures.
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