Amazon CloudFront is a web service for content delivery. It integrates with other Amazon Web Services to give developers and businesses an easy way to distribute content to end users with low latency, high data transfer speeds, and no commitments.
Questions tagged [amazon-cloudfront]
4907 questions
2
votes
0 answers
simple javascript file keeps returning 301 with cloudfront
I'm using cloudfront for a simple javascript asset that is the following:
https://d1syjrf5lltxmn.cloudfront.net/Content/JavaScript/jquery-migrate-1.2.1.min.js
I've got the Origin Domain name and path set to
www.siliconvalley-codecamp.com
Origin…

Peter Kellner
- 14,748
- 25
- 102
- 188
2
votes
1 answer
Grunt module(s) to upload all static assets to S3 / CloudFront, replace paths, and invalidate old assets
Using Grunt, NodeJs and Express, what module(s) should I use to:
Discover all static assets (frontend JS, CSS, images) in the app, either by looking at an asset directory or parsing through the codebase
Upload assets to Amazon S3 / CloudFront,…

max
- 617
- 8
- 20
2
votes
1 answer
CloudFront signed URLs throwing 403 Forbidden errors
I’m trying to use CloudFront as a CDN for my video on demand website.
I’ve created a HTTP distribution (because I need to stream to iOS devices, so RTMP is unsuitable), and set the origin to be my S3 bucket where my video files are stored. I’ve also…

Martin Bean
- 38,379
- 25
- 128
- 201
2
votes
2 answers
How to uninstall OnePica Image CDN Magento extension manually?
I have deployed an existing site to my local server and the admin and site is loading.
However all the css and js files are not found since the CloudFront CDN is not serving the files to my local server. I have no idea why all the CDN urls are not…

Natacha Beaugeais
- 1,003
- 1
- 11
- 24
2
votes
2 answers
Cloudfront URL vs S3 URL on AWS
I recently created a new cloudfront distribution of one of my s3 buckets. Should I change the URL to cloudfront.net domain? If I kept by S3 bucket URL, will the data be fetched from the nearest edge location for optimum delivery?

hvs
- 518
- 1
- 5
- 21
2
votes
1 answer
AWS Cloudfront redirecting form post to origin
Hi I have a dynamic application that has a search form. I'm trying to use CloudFront with a load balancer. When you do a search the application creates some URL parameters and reloads the page. For some reason cloudfront is doing a 302 redirect back…

Code Junkie
- 7,602
- 26
- 79
- 141
2
votes
1 answer
Troubleshooting Cloudfront with HTTPS using SNI
I am having a problem similar but not identical to the problem in CloudFront error when serving over HTTPS using SNI. My domain is cartasblogatorias.com, and the Cloudfront URL is d2nmvk8sd34zkj.cloudfront.net. I have a CNAME pointing…

TJF
- 61
- 1
- 5
2
votes
1 answer
How does using CloudFront improve upload speed?
Amazon supports POST and PUT requests with its CloudFront CDN service.
The FAQ says that
Amazon CloudFront does not cache the responses to POST, PUT, DELETE, and PATCH requests – these requests are proxied back to the origin server. You may enable…

Jason Owen
- 7,200
- 3
- 21
- 25
2
votes
2 answers
AWS Restrict access from cloudfront to load balancer
I'm using Cloudfront with load balancing and ec2 instances.
In AWS, my load balancer accepts traffic from all http connections. It is possible to restrict that to accept only http connections from my Cloudfront distributions ? And how can I do that…

jsebfranck
- 704
- 2
- 9
- 18
2
votes
0 answers
Delete an AWS cloudfront distribution via CLI or SDK
Deleting a cloudfront distribution programmatically it is still necessary to wait for the distribution to be disabled - which can take a while, up to 30 minutes.
So how can I write a script that deletes an existing distribution, first disabling and…

Alexander Presber
- 6,429
- 2
- 37
- 66
2
votes
1 answer
Security Error #2122 loading image from Amazon Cloudfront
I'm trying to load an image from my cloudfront distribution. My loading code looks like:
var thumbLoader:Loader = new Loader();
// add event listener to the thumbLoader
thumbLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, function…

Rob Allsopp
- 3,309
- 5
- 34
- 53
2
votes
0 answers
prefixfree.min.js on cdn affects other files
My website is hosted on cloudfront and i'm using cdn for different locations.
I'm using prefixfree.min.js to solve the css3 codes in the website, but it is giving the issue as shown in the image below:

Kijan Maharjan
- 1,031
- 7
- 14
2
votes
1 answer
Setting Access-Control-Allow-Origin on Cloudfront
I am having problems serving static assets to Firefox using AWS Cloudfront.
Chrome works perfect, but Firefox is returning a CORS error.
If I execute curl , I get:
HTTP/1.1 200 OK
Content-Type: application/x-font-opentype
Content-Length:…

Tony
- 10,088
- 20
- 85
- 139
2
votes
1 answer
Cloudfront CDN to Apache origin
I am running into an issue where my website www.example.com is mapped to AWS Cloudfront. However, I'd like to also have Cloudfront CDN pass the Host "www.example.com" to the origin server to retrieve content. It doesn't look like this feature is…

Ma Diga
- 406
- 1
- 3
- 14
2
votes
1 answer
Serving only image assets from CloudFront with Rails
I recently switched to using CloudFront as a CDN to serve my assets using the simple
config.action_controller.asset_host = "url of your cloudfront distribution" in my config file.
All works well, CF pulls in assets that it doesn't have just fine,…

lemonginger
- 345
- 2
- 17