After multiple attempts, I finally identified the issue.
When a resource is proxied through Cloudflare Workers, the Content-Length header is absent, which causes the file size to always be 0 and the ended flag to remain false. As a result, the .ipull suffix does not get removed after the download completes.
I'm unsure whether this qualifies as a bug. After extensive searching, I found that Cloudflare Workers seemingly does not allow incomplete file transfers? Even with my custom worker, regardless of how requests are made, the response headers never include Accept-Ranges or Content-Length.
After multiple attempts, I finally identified the issue.
When a resource is proxied through Cloudflare Workers, the
Content-Lengthheader is absent, which causes the file size to always be 0 and theendedflag to remain false. As a result, the.ipullsuffix does not get removed after the download completes.I'm unsure whether this qualifies as a bug. After extensive searching, I found that Cloudflare Workers seemingly does not allow incomplete file transfers? Even with my custom worker, regardless of how requests are made, the response headers never include
Accept-RangesorContent-Length.