Large downloads failing even when using X-Accel-Redirect/X-Sendfile
-
Hi,
We are having an issue with our WooCommerce store.
We sell digital downloads of various file sizes (anywhere from 10 MB to 4 GB), and we often get customers complaining that the downloads crashed mid-way and that they are unable to complete the download process.
It seems the downloads often fail when the file is quite large (for example 1 GB or more). But they don’t fail all the time, so it seems to be dependent on the customers Internet speed (and thus on the duration of the download). Also, after the customer complains, we manually send a direct download link to the file to the customers, and this always works just fine (this means the problem only occurs with the download links generated by WooCommerce).
We use the X-Accel-Redirect/X-Sendfile option in WooCommerce to serve downloads (we want to keep this option to keep the file URLs hidden on our server). Our hosting provider is Cloudways on DigitalOcean (4GB ram).
Has anyone been able to solve this issue? Is it a matter of changing the configuration of PHP on the server, or do we just need to increase our server CPU or RAM?
Thanks!
- You must be logged in to reply to this topic.