Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › eStore – Encrypted download links to external file link not working › Reply To: eStore – Encrypted download links to external file link not working
The way encrypted download links work is by using the server as a middle man between the source file and the user. Normally, the source file is on the server, and it merely needs to read the file and push it out to the user.
By externally hosting the files, you’ve effectively doubled the bandwidth usage of your server; once to download the file from the external source to the server, and once to push the file back out to the user.
Additionally, because the server is now burdened with having to copy/push the file in/out twice between the external source and the user; processing time is increased, which causes HTTP session timeouts to occur. The usual symptom of an HTTP session timeout is when the debug log shows a successful download with no server side errors, but the user gets a truncated (or even a 0k) file.
I also noticed, from the Rackspace CDN promotional material, that they use HTTP compression. This may or may not be factoring into the problem.
If you must externally host files, please use the eStore Amazon S3 integration. Instead of copying/pushing files; Amazon S3 integration works by handing off all of the downloading to the Amazon S3 servers, which then push the files directly to the user.
The cost of Amazon S3 is free for the first year. Users are reporting average monthly costs of 7 to 15 cents a month.
Amazon S3 is reliable; it uses the same network of servers that Netflix uses.
BTW, trying to CURL an encrypted link won’t work, because the encrypted link is not really a file, but a PHP script with a query string; which kicks off the previously described actions.