Intermittent 425 Too Early Behind a CDN? Check TLS 0-RTT, Early-Data, and Retries
Create Time:2026-11-26 10:58:19
浏览量
1060

Early data waiting at a CDN security gate before a request proceeds after the TLS handshake

A request fails once and succeeds after a refresh, leaving a 425 Too Early entry in the logs. If TLS early data was recently enabled, or the service uses a CDN that supports 0-RTT, check whether the affected request was sent early and how the client handled the rejection.

425 is different from rate limiting or a gateway timeout. RFC 8470 defines it for a server unwilling to risk processing a request that might be replayed. First locate the response source; increasing concurrency or repeatedly resending business operations is not a useful diagnosis.

Establish whether early data was actually involved

TLS 1.3 permits early data during connection resumption before the handshake completes. It does not provide the same replay protection as ordinary 1-RTT data. Replay protection requires coordination between TLS termination, proxies, and the application; a successful response does not prove that protection exists.

Capture the timestamp with time zone, method, path, client version, CDN request ID, and effective 0-RTT configuration. Check current provider documentation for support, defaults, and available log fields. HTTP/3 use alone does not establish that this request carried early data.

Separate the client-to-CDN and CDN-to-origin connections. When the edge terminates TLS, the origin does not observe the original client handshake directly. It needs trustworthy context from the intermediary. If no corresponding request reached the origin, investigate an edge-generated 425.

Understand the purpose of Early-Data

RFC 8470 defines the Early-Data request header to communicate that a request was conveyed in early data. Intermediaries need to propagate that context as specified. Removing the header without addressing replay risk is not a safe way to treat the request as ordinary traffic.

Early-Data: 1 in a log is useful correlation evidence, but a same-named header supplied by an untrusted client is not a substitute for TLS-layer evidence. Check which hop set or forwarded it, which proxies the origin trusts, and whether additional gateways establish separate upstream connections.

Adding Early-Data: 1 manually does not create real TLS early data. It tests only some header-handling behavior. Likewise, a normal curl request succeeding does not rule out an issue limited to session resumption or particular clients.

Identify the component returning 425

Correlate client, CDN, reverse-proxy, and application logs in the same time window. Determine whether early-data context was present, whether the application handler ran, and whether any state changed. Looking only at the final response can hide a 425 already retried by an SDK.

If browsers recover but one SDK fails, check whether the SDK understands 425, can replay the request body, and waits for a completed handshake before retrying without early data. Streaming uploads and non-rewindable bodies need separate treatment; not every request can be retried transparently.

If ordinary full-handshake traffic also receives 425, inspect custom application or gateway status mappings. Do not use 425 as a generic instruction to try again later.

Compare a baseline with a controlled 0-RTT test

Start with a public, low-cost, read-only test path. This Linux shell example performs a normal GET baseline. It does not enable or prove 0-RTT and is not a reproduction of genuine early data:

curl -sS --max-time 15 \
  -D baseline.headers -o baseline.body \
  -w 'code=%{http_code} total=%{time_total}\n' \
  'https://www.example.com/test/public'

sha256sum baseline.body

A real 0-RTT test requires confirming support in the client, TLS library, and provider, establishing a resumable session, and following the relevant tool's official procedure. Record whether early data was actually sent and accepted rather than treating a faster second connection as proof.

Use staging or an isolated path with no credentials or business side effects. Even a nominal read endpoint can trigger billing or state changes in its implementation, so confirm its behavior first. Do not replay real orders, payments, or authorization operations as an experiment.

Retries must avoid the same risk

Under RFC 8470, an automatic retry after 425 must not use early data again. This is not simply a fixed delay followed by an identical burst. Verify connection state, retry support, and body replayability.

For intermediary retries, check upstream handshake completion and the conditions under which the proxy can safely retry. Avoid unbounded retries independently implemented by clients, CDNs, and applications.

For writes, retain server-side idempotency controls, a unique operation identifier, and a result-query mechanism. Also rule out implementation faults where custom error mapping or partial business execution occurs before an error response. A status code alone is not evidence that all application behavior is correct.

Adjust policy narrowly and validate the result

For paths that cannot tolerate replay risk, evaluate the provider-supported way to wait for handshake completion or disable early data at an appropriate scope. Per-path control is an option only if the platform actually supports it.

Save the original TLS and proxy rules, test on an isolated hostname, and roll out gradually. Do not hide the problem by changing 425 to 200, stripping context, or converting state-changing operations to GET. If there is no early-data feature or handshake evidence, continue investigating status-code generation and custom rules.

Acceptance should cover an initial full handshake, resumption, genuine early data, a normal retry after rejection, and a client unable to replay its body. Inspect returned content, operation counts, errors, retries, and latency. The goal is safe, predictable processing rather than merely reducing the number of logged 425 responses.

References

The command is a normal GET baseline and has not been executed in your production environment. It does not establish a completed 0-RTT test. Verify CDN and client capabilities against current official documentation and the deployed configuration.