I want to add downloadable files to my woocommerce site. Their documentation says - If your server supports it, use X-Sendfile; its the most reliable method. Apache serves the download giving you the best performance. Files are also protected by a .htaccess file making this method secure.