Cannot download zip files directly from gitlab pages
Summary
I have some repositories on a gitlab instance, gitgud.io. When I maintained some 20MB zip files in gitlab pages, I was unable to download them directly and could just download the files through artifacts. The connection will be closed soon and neither the browsers (Microsoft Edge, Firefox, Safari) nor the download tool (Neat Download Manager) can continue downloading.
I first reported the issue to gitgud.io team and added variables like FF_USE_FASTZIP and ARTIFACT_COMPRESSION_LEVEL into .gitlab-ci.yml. This fixed the issue with the download tool, but the browsers still return a 206 Partial Content error.
Steps to reproduce
There are two zip files in my gitlab pages:
https://umalib.gitgud.site/UmaLibDesktop/20240406.zip: this zip file is generated with variables FF_USE_FASTZIP=true and ARTIFACT_COMPRESSION_LEVEL=fastest. It can be downloaded by the download tool. It belongs to https://gitgud.io/umalib/UmaLibDesktop, a public repository.
https://umalib.gitgud.site/UmaLibAndroid/20240406.zip: this zip file is generated without any variables. It can't be downloaded in any way. It belongs to https://gitgud.io/umalib/UmaLibAndroid, a public repository.
Example Project
What is the current bug behavior?
Microsoft Edge returns 206 Partial Content and stops downloading soon. Firefox can't start downloading and shows NS_ERROR_NET_PARTIAL_TRANSFER. For the zip file generated without variables, the download tool starts downloading, then stops it after downloading about 50KB and shows Server Closed Connection Suddenly.
What is the expected correct behavior?
Relevant logs and/or screenshots
Microsoft Edge (the zip file in this screenshot is generated without variables, and the browser returns the same result when downloading https://umalib.gitgud.site/UmaLibDesktop/20240406.zip):
Firefox (the zip file in this screenshot is generated without variables, and the browser returns the same result when downloading https://umalib.gitgud.site/UmaLibDesktop/20240406.zip):
.gitlab-ci.yml (used to deploy https://umalib.gitgud.site/UmaLibDesktop/20240406.zip):
log file from the download tool (when downloading https://umalib.gitgud.site/UmaLibAndroid/20240406.zip): LogFile.txt