I am building a simple API that downloads files off a thirdparty CDN (Cloud Files). ColdFusion is currently successfully getting this file and by using CfContent and cfheader the file is available for download and the person who called the API.
The problem I am having is that these files are secure files so i cannot use a direct link to the CDN, and these files can range from 50MB-5GB. So because of these two issues, when I get the file from the CDN using CfHTTP, and then do this
<cfcontent type="MMIETYPE" variable="#CFHTTP.FileContent#" >
Im confused to as if ColdFusion is acting like a middle server where its getting the file in bits from the CDN and passing it to the user , OR is it downloading the entire file into memory and then streaming it to the user.
If its doing the latter, then how do I make it act as the middle server?