Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 948561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:15:48+00:00 2026-05-15T23:15:48+00:00

I am building a simple API that downloads files off a thirdparty CDN (Cloud

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T23:15:49+00:00Added an answer on May 15, 2026 at 11:15 pm

    Using cfhttp downloads the file. There is not much recourse for hiding the URI for the CDN without downloading the file and re-serving it to the end user.

    Most end-users will not be able to tell where the file is located if you use the HTTP 301 or 302 status codes.

    301 is a permanent redirect and 302 is a temporary redirect. The difference being some browsers cache 301’s so that the user does not have to hit your server again if it requests the URI a second time.

    You can do this simply

    <cfheader statuscode="301" statustext="Moved permanently" />
    <cfheader name="Location" value="#CDN_URI#" />
    <cfabort />
    

    or

    <cfheader statuscode="302" statustext="Moved Temporarily" />
    <cfheader name="Location" value="#CDN_URI#" />
    <cfabort />
    

    You can also use cflocation, which by default uses a 302, but can be made to use another status code using the statusCode attribute.

    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_j-l_04.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking at building a simple web app that will expose an API that
I am building a simple Django app that will use scribd to display documents.
I'm building a fairly simple PHP script that will need to send some emails
I'm building something that requires a simple HTML frontend for editing some properties in
I'm building a simple html5 app to monitor the total network traffic that's incoming
I'm currently building an API for a very busy internet website. Its being written
I'm building an application with the Dyninst API, and with a simple Hello World
This is so simple that it's ridiculous I couldn't find any information about this
I thought about building a simple API to let users grab some of our
I'm building a simple Todo List application where I want to be able to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.