Diagnostic step 1
Verify and compare headers for mirrored internal subrequest: add add_header X-Debug-Range $http_range in mirror location and log upstream response headers.
Generated Oct 30, 2026, 9:42:13 AM
Verify and compare headers for mirrored internal subrequest: add add_header X-Debug-Range $http_range in mirror location and log upstream response headers.
Ensure the mirror/internal location includes proxy_set_header Range $http_range; proxy_set_header Accept-Ranges bytes; so the Range header is forwarded unchanged.
Temporarily disable proxy_buffering and proxy_max_temp_file_size in the mirror/internal location and retest to rule out buffering effects.
If using signed URLs, confirm the internal URI used by the mirror includes the same object key and credentials so upstream returns identical metadata. If necessary, generate a test unsigned object and repeat.
If reproduces on latest stable NGINX, capture a minimal config and open a bug with NGINX or test a newer package on a staging host before production change.