: Looking for a CDN Most of the CDN's that I've seen require you to upload your content in advance. I'm looking for a CDN that, upon receiving a request for a resource it hasn't seen, will
Most of the CDN's that I've seen require you to upload your content in advance. I'm looking for a CDN that, upon receiving a request for a resource it hasn't seen, will contact my application server. If the application server returns something, it should be sent to the user and then cached in the CDN. If not, it should just return a 404. If the user requests an unexpired item, the CDN should just serve it without bothering my app server.
Does anything like this exist? Is there a way to get Cloudfront to work like this?
More posts by @Mendez628
6 Comments
Sorted by latest first Latest Oldest Best
You can find more about Origin Pull providers also in discussion at StackOverflow. AFAIK most of pay-as-go CDN providers, as CDN77.com or Maxcdn, has this feature as the simpliest and standard one. It is quite easy for configuration as there is no need for any downloads, just preset directly on CDN.
Something about it also on it here.
Yes, Cloudfront will do this quite easily. I used it to offload 2/3 of our server image traffic.
Set up Cloudfront with a Custom Origin pointing to your web server.
Set up a cname in your dns entries that points to the assigned Cloudfront server.
Then send all your image requests to your cname server with the path to image on your web server.
Requests to images on your web pages like example.com/images/thisimage.jpg becomes a request to media.example.com/images/thisimage.jpg and Cloudfront does all the rest by pulling the image and serving subsequent requests.
AS mentioned, you want "origin fetch" services from a CDN. SimpleCDN, MaxCDN, Voxel, CacheFly and others offer this at the low end with contract-less pay-as-you-go options. See here for a list of many of these smaller CDNs.
As for the big boys, Level3, Akamai, and Limeleght offer this with contract-based terms.
You're looking for the Coral CDN, basically. It's dead easy to use, and free!
The technology you're looking for is called Origin Pull. I'm not sure about Cloudfront specifically, but most CDNs are able to offer this.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.