What is the difference between Forced Download and Redirect Download?

Easy Digital Downloads can be configured to deliver files to customers in two ways, 'Redirect' and 'Forced'. While ultimately both of these methods result in the same goal of the customer downloading a file, there are unique cases in which you'd want to use one or the other.

Forced

With the forced method, Easy Digital Downloads breaks the file into smaller pieces and delivers them to the browser without redirecting the user to the actual file. This is beneficial for advanced hosting configurations where files may not be stored in the default directories, or delivered via a content delivery network (CDN).

Due to it's consistency in multiple platforms and better file protection, 'forced' is the default method.

Because Easy Digital Downloads uses PHP to process the file with the 'forced' method, larger files can cause problems with delivery, resulting in hitting the 'max execution time' of the server. If user's are getting 404 or 403 errors when trying to access their purchased files when using the 'forced' method, changing to the 'redirect' method can help resolve this.

Redirect

The Redirect method is the most straight forward of the two, and works by telling the user's browser the location of the file, and it then starts the process of downloading it directly from the server.

This does rely on the browser to handle the bulk of the work, and depending on browser configuration can result in unexpected results for some filetypes.

It is also best to use the 'redirect' method for large files.