Cloudflare 524 Timeout on LLM APIs: The 100s Limit and How to Fix It
A 524 timeout on an LLM API means Cloudflare gave up after about 100 seconds without an origin response. How to diagnose it, a timeout table per layer, and three fixes.
Blog
「Edge & CDN」分类下的文章。
A 524 timeout on an LLM API means Cloudflare gave up after about 100 seconds without an origin response. How to diagnose it, a timeout table per layer, and three fixes.
Why anycast IPs have one location in geo databases, and how to find your actual node with Cloudflare trace colo, DNS queries and traceroute latency.
What to do when a public CDN script fails to load or fails its SRI check: three copy-paste patterns (global check, onerror chain, import map), plus crossorigin, timeouts and testing.
WebSocket dropping after about 100 or 60 seconds behind Cloudflare, close code 1006? Idle timeouts by layer, heartbeat values, Nginx config, and reconnect code.
Cloudflare's too many redirects error usually means an SSL mode clash with your origin. Compare Flexible, Full and Full (strict), debug with curl, fix it.
Learn how no-cache, no-store, max-age, s-maxage and immutable differ, get a browser and CDN config table by resource type, and verify cache hits with curl.
What to cache, how to rate limit AI APIs, lock your origin to Cloudflare, and fix SSE buffering and 524 errors. Includes Workers code and a launch checklist.