R2 can't respend 206

I connect my doamin r2.reinstall.sh with R2
when I set a header Range: bytes=0-1048576 which means just download 1 MB part of the file. But some of my iso files will download all.

there are some test:

[root@vps2426259 ~]# curl -I -H "Range: bytes=0-1048576" https://r2.reinstall.sh/test/Win10_22H2_EnglishInternational_x64v1.iso
HTTP/1.1 200 OK
Date: Mon, 18 Dec 2023 10:58:15 GMT
Content-Type: application/x-cd-image
Content-Length: 6135633920
Connection: keep-alive
ETag: "2e9a1d13d6a32ca331acabddaf87dded-1171"
Last-Modified: Mon, 18 Dec 2023 09:36:28 GMT
Vary: Accept-Encoding
Cache-Control: max-age=14400
CF-Cache-Status: MISS
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=PkoFNoLj%2BLVDtfYP5PS1K7pNjF%2F8BpqNw66q6Y3xTfe0YXLTBF59eIcpT%2FMHXhIMjwI2Rx0nChDdC1ZV4Wkv%2BOZGCJV8T5426Sf3iBax20WbNbMbmozF4UKXNLrBUMe36gRtIi6%2FhHf9RNEyzhw%3D"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 8376e3bbb827717b-DUS
alt-svc: h3=":443"; ma=86400

[root@vps2426259 ~]# curl -I -H "Range: bytes=0-1048576" https://r2.reinstall.sh/test/Win10_22H2_EnglishInternational_x64v1.iso
HTTP/1.1 206 Partial Content
Date: Mon, 18 Dec 2023 10:58:17 GMT
Content-Type: application/x-cd-image
Content-Length: 1048577
Connection: keep-alive
Content-Range: bytes 0-1048576/6135633920
ETag: "2e9a1d13d6a32ca331acabddaf87dded-1171"
Last-Modified: Mon, 18 Dec 2023 09:36:28 GMT
Vary: Accept-Encoding
Cache-Control: max-age=14400
CF-Cache-Status: MISS
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=gKx5cUzUlzaGFDxD19ErljlDgEbe9jpLnOGEU%2BuV0Q5RPbcZ7bRz2kVhbTfnnXGjin0InLpbY47hPygaSfKzy2Obqzqqh1gfee44z%2Bx%2FqPrc%2FuacMmx8Qtq6%2Fkg7sUPiud%2FrgY5mOTUqtfMevtw%3D"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 8376e3ccbb3fcafd-DUS
alt-svc: h3=":443"; ma=86400

other files works well in the same bucket, such as:

[root@vps2426259 ~]# curl -I -H "Range: bytes=0-1048576" https://file.1323123.xyz/3GB-debian11.qcow2
HTTP/1.1 206 Partial Content
Date: Mon, 18 Dec 2023 11:07:43 GMT
Content-Type: application/x-qemu-disk
Content-Length: 1048577
Connection: keep-alive
Content-Range: bytes 0-1048576/1290731520
Accept-Ranges: bytes
ETag: "37bdd93656f10234d3fc8f7e4960d585-247"
Last-Modified: Tue, 08 Aug 2023 10:39:27 GMT
Vary: Accept-Encoding
CF-Cache-Status: DYNAMIC
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=aYZaupzMsPEhNEMFGz4BDHkuf2p4rq54OHSDcZubInF7EUvdXAairA8Yo50GhePXKFMGvO31ajt1QcARf4VdtZ2z3K2fdnrieeoaMYjmaFPwoS683rt%2FxdBG97TojzvNU3xY"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 8376f19d4fcf1621-DUS
alt-svc: h3=":443"; ma=86400

[root@vps2426259 ~]# curl -I -H "Range: bytes=0-1048576" https://file.1323123.xyz/3GB-debian11.qcow2
HTTP/1.1 206 Partial Content
Date: Mon, 18 Dec 2023 11:07:47 GMT
Content-Type: application/x-qemu-disk
Content-Length: 1048577
Connection: keep-alive
Content-Range: bytes 0-1048576/1290731520
Accept-Ranges: bytes
ETag: "37bdd93656f10234d3fc8f7e4960d585-247"
Last-Modified: Tue, 08 Aug 2023 10:39:27 GMT
Vary: Accept-Encoding
CF-Cache-Status: DYNAMIC
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=0nAwwrP3FErj73JZknUPO1EeGBtq%2FZtnt0fFVIZHBijjQ9N1vSpiZXqlNGxj80qT%2BgT5NBeT3IIRV5BuRsotL9JmxCAVuCRYhr6U%2FYkRkFdhKGktdWTMrgNm%2Bm%2FjpT3CcY5f"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 8376f1b47c561632-DUS
alt-svc: h3=":443"; ma=86400

I tried to upload the iso to my other bucket, it still works well (Maybe it’s a coincidence)

[root@vps2426259 ~]# curl -I -H "Range: bytes=0-1048576" https://1.31dm.com/Win10_22H2_EnglishInternational_x64v1.iso
HTTP/1.1 206 Partial Content
Date: Mon, 18 Dec 2023 11:09:50 GMT
Content-Type: application/x-cd-image
Content-Length: 1048577
Connection: keep-alive
Content-Range: bytes 0-1048576/6135633920
CF-Ray: 8376f4b5d9e91db3-FRA
CF-Cache-Status: DYNAMIC
Accept-Ranges: bytes
ETag: "2e9a1d13d6a32ca331acabddaf87dded-1171"
Last-Modified: Mon, 18 Dec 2023 08:28:46 GMT
Vary: Accept-Encoding
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=XqY1S0tHTvPd6sA94Y2HUmpHOmQcqydO3Bq%2FhT%2BNCDWftofepjIgLHzTgZLX9GL0IrBS830%2Fg6zJhTU%2BrEFf9lA9oXRllIVs1%2FXAZYO%2FKrBX1ZKAcqa3Q8%2BnN7x6zsuWQ2M4lGBjbqA%3D"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Server: cloudflare

[root@vps2426259 ~]# curl -I -H "Range: bytes=0-1048576" https://1.31dm.com/Win10_22H2_EnglishInternational_x64v1.iso
HTTP/1.1 206 Partial Content
Date: Mon, 18 Dec 2023 11:09:53 GMT
Content-Type: application/x-cd-image
Content-Length: 1048577
Connection: keep-alive
Content-Range: bytes 0-1048576/6135633920
CF-Ray: 8376f4ca0be59265-FRA
CF-Cache-Status: DYNAMIC
Accept-Ranges: bytes
ETag: "2e9a1d13d6a32ca331acabddaf87dded-1171"
Last-Modified: Mon, 18 Dec 2023 08:28:46 GMT
Vary: Accept-Encoding
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=u5m7cnzB2xK5C7blplaUeihyO0IyhfGvwsB2hEvCKSAdv3qKlNcQZLA%2FHocC2Q3x%2Fx38d85qYopN40JsajTIwJUe5Yk1YnIrL397wnkZkLlrfU9b37f0uSyF3xl7C4dBs1xpi4gQ8gE%3D"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Server: cloudflare

I also try to change the connect domain, and set the domain file.1323123.xyz
It still respond 200 sometimes.

[root@vps2426259 ~]# curl -I -H "Range: bytes=0-1048576" https://file.1323123.xyz/test/Win10_22H2_EnglishInternational_x64v1.iso
HTTP/1.1 206 Partial Content
Date: Mon, 18 Dec 2023 11:11:55 GMT
Content-Type: application/x-cd-image
Content-Length: 1048577
Connection: keep-alive
Content-Range: bytes 0-1048576/6135633920
ETag: "2e9a1d13d6a32ca331acabddaf87dded-1171"
Last-Modified: Mon, 18 Dec 2023 09:36:28 GMT
Vary: Accept-Encoding
Cache-Control: max-age=14400
CF-Cache-Status: MISS
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=kSxEJ6Sd8gmQYmidW6x01hEcNZ5C3Benlzw6VhTrsvHSCWL1qWRLDEd4j23yPMltCZH%2BzgNhVdrIB6c%2BAiwPnDtlWXotShr9TNxVqyQ30p6IWOPswRrMHyjvY9pKmyp1WMrG"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 8376f7c37e407174-DUS
alt-svc: h3=":443"; ma=86400

[root@vps2426259 ~]# curl -I -H "Range: bytes=0-1048576" https://file.1323123.xyz/test/Win10_22H2_EnglishInternational_x64v1.iso
HTTP/1.1 200 OK
Date: Mon, 18 Dec 2023 11:12:00 GMT
Content-Type: application/x-cd-image
Content-Length: 6135633920
Connection: keep-alive
ETag: "2e9a1d13d6a32ca331acabddaf87dded-1171"
Last-Modified: Mon, 18 Dec 2023 09:36:28 GMT
Vary: Accept-Encoding
Cache-Control: max-age=14400
CF-Cache-Status: MISS
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=xU%2BKVlJUf3q1gQXwZ6ZZk3txatJ1rHO3pOh8cKS%2FGP%2FXkDAdW2d%2F%2BS8vgynGRoi3p6TeyWI1MOjjrrQz%2B013zCyLeuAi9yI0NV%2BwP5YJmC42MpW4M1fgbeqV3sscEchrTguU"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 8376f7e1085b716f-DUS
alt-svc: h3=":443"; ma=86400

I know that, I need turn off the cache

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.