TTFB is the wait before the first byte of the response. People blame PHP, then ship a bigger origin. For global visitors the wait is often geography: a lookup in one continent and an origin in another.
Split the number
TTFB includes DNS lookup, connection, TLS and then server think time. A CDN hit makes server think time approximately zero for that object. HTTP/3 and TLS 1.3 with 0-RTT shrink the handshake.
If TTFB is only bad far from the origin, you do not have an application problem first. You have a distance problem.
Cache the document, not only the assets
Optimising images while HTML still comes from origin leaves the most important TTFB untouched. Anonymous pages should be cacheable at Cloud CDN with purge on publish.
Hashed assets already have excellent TTFB once cached. HTML is where most sites still fail.
DNS is on the critical path
A slow or far-away authoritative answer adds to the same user-visible wait. Anycast Cloud DNS on 210+ servers keeps the lookup close to the resolver.
A 300-second TTL on a record you just moved also looks like TTFB to the users still hitting the old origin.
Misses still matter
Origin Shield and keep-alive to origin stop miss storms from becoming TTFB storms. Serve-stale covers origin blips for eligible content.
Measure hit ratio by path. A 40% hit ratio on HTML means TTFB still tracks origin for most page views.
