
An upload pauses before sending its body, starts after a delay, or immediately receives 417 Expectation Failed. If the client sends Expect: 100-continue, check whether it is waiting for permission to proceed and how each intermediary handles that expectation.
This is a different stage from a transfer that has already started but runs slowly. Record when headers are sent, an informational response arrives, the first body bytes leave, and the final response arrives. Do not attribute every pause to CDN bandwidth.
Understand 100 and 417
Expect: 100-continue lets a client send headers first and wait for 100 Continue or a final response before proceeding according to its implementation. A server can reject a request using information already available in the headers, potentially avoiding an unnecessary large transfer. A 100 response is informational: it does not mean that the upload or business operation succeeded.
417 means that at least one inbound server could not meet the expectation. It is not another name for 413 Content Too Large or 504 Gateway Timeout. Confirm the component generating the response and its reason, especially where gateways map errors to custom statuses.
Clients need not wait indefinitely for 100 and can send the body after their waiting policy expires. Defaults vary by tool, version, and backend; a fixed pause alone does not identify a provider fault.
Locate the wait or rejection
Record the timestamp with time zone, client version, method, upload size, Content-Length or framing, Expect value, response status, and CDN request ID. Credentials, signed URLs, cookies, and bodies can be sensitive. Retain only necessary redacted diagnostic fields.
Treat client-to-CDN, CDN-to-gateway, and gateway-to-application as separate connections. An informational response can be generated or forwarded by an intermediary. Receiving 100 does not alone prove that the origin accepted or read the body. Missing origin access logs can also reflect logging only after request completion.
Correlate edge events, proxy errors, and the time when the application starts reading. If an origin issues a final rejection promptly but the client never receives it, investigate response forwarding. If the client waits while the origin never sees headers, inspect the preceding hop.
Compare requests on an isolated upload endpoint
The following Linux shell example is only for an authorized test endpoint. POST may have side effects, so use a harmless small sample and never substitute a payment, order, or production user-file endpoint.
printf 'upload-probe\n' > probe.txt curl -sS --max-time 20 \ -H 'Expect: 100-continue' \ --expect100-timeout 2 \ --data-binary @probe.txt \ -D with-expect.headers -o with-expect.body \ 'https://upload.example.com/test/upload' curl -sS --max-time 20 \ -H 'Expect:' \ --data-binary @probe.txt \ -D without-expect.headers -o without-expect.body \ 'https://upload.example.com/test/upload'
--expect100-timeout controls curl's wait in this flow. The example value is a comparison setting, not a production recommendation. The empty Expect header option suppresses that field. Record the actual HTTP version and outgoing headers so protocol changes do not confound the comparison.
A saved header file can include multiple informational responses and the final response. Reading its first line alone is insufficient. For detailed timing, use controlled diagnostics in isolation and protect the output. Ordinary verbose output is not a precise measurement of every body byte on the wire.
Distinguish rejection from timeout followed by sending
If the request with Expect receives 417 while the other succeeds, investigate the expectation-handling chain. This does not establish that every client should remove the header. Identify the rejecting hop, check for unsupported expectation values, and compare intermediary and origin behavior.
RFC 9110 says that a client receiving 417 for a 100-continue expectation should repeat the request without that expectation. Before applying retries to real uploads, verify body replayability, destination trust, and idempotency. Custom implementations might have performed work before returning an error, so avoid unlimited automatic retries.
If there is no 417 and uploading starts only after the wait expires, investigate informational-response handling, client wait settings, and upstream connection establishment. Reducing the wait can reduce the pause without repairing interoperability. It may also start sending a large body that could otherwise have been rejected early.
Check authentication, size limits, and buffering too
A server can issue a final 401, 403, 413, or redirect before reading the full body. Compare the final response with the request's authentication and declared size rather than treating every early response as a continue failure. Redirects introduce separate method-preservation and body-replay questions; verify Location before following.
A CDN or origin proxy can buffer a request body or stream it upstream. Changing buffering affects resource use, when the origin receives data, and failure handling. Do not toggle it site-wide merely to remove a pause. Check the platform's documented support for Expect and informational responses.
HTTP/1.1 chunked transfer coding and HTTP/2 or HTTP/3 data frames are different wire representations. Do not manufacture conflicting Content-Length and Transfer-Encoding values for diagnosis. Use requests generated normally by supported tools and keep test conditions fixed.
Roll out a scoped fix and check operation counts
Save the original client and proxy configuration. Repair confirmed incompatibilities in expectation handling or response forwarding first. If a specific path does not need the mechanism, evaluate disabling it in a verified client while checking large-body, authentication-failure, and network-interruption costs.
Acceptance should cover successful uploads, early rejection, client wait expiry without 100, controlled retry after 417, and streaming bodies. Check body hashes, transferred bytes, final status, connection usage, and business execution counts rather than just a shorter wait.
After deployment, monitor upload success, retries, bandwidth, and origin load, with the saved configuration available for rollback. A small sample establishes only that one set of conditions works. Extend testing within authorized limits to deployed client versions and representative file sizes.
References
Commands target an isolated test endpoint and have not been executed in your production environment. Verify CDN and client capabilities against current official documentation and the deployed configuration.