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
43
votes
2 answers
AWS CloudFront returns http 307 when origin is S3 bucket
I have created the s3 bucket with some files. I created the CloudFront distribution with that S3 bucket as origin and it changed status to deployed.
When I curl CloudFront for any file I get:
Please…
TemporaryRedirect

Kivan
- 1,712
- 1
- 14
- 30
43
votes
1 answer
Does an amazon cloudfront distribution with multiple origins conflict?
i have 2 different images in 2 websites at:
http://www.siteA.com/avatar.png
http://www.siteB.com/avatar.png
If i create an Amazon Cloudfront distribution with 2 origins: www.siteA.com and www.siteB.com and then i call for…

Rakib
- 12,376
- 16
- 77
- 113
42
votes
1 answer
Receive AccessDenied when trying to access a reload or refresh or one in new tab in angular 5
For a while, I was simply storing the contents of my website in a s3 bucket and could access all pages via the full url just fine. I wanted to make my website more secure by adding an SSL so I created a CloudFront Distribution to point to my s3…

Avinash Dalvi
- 8,551
- 7
- 27
- 53
41
votes
8 answers
Cannot delete AWS Lambda@Edge replicas
This question already exists here but I think it will have more impact on SO.
I created an AWS Lambda@Edge function in order to rewrite Cloudfront URLs before they reach the Origin.
AWS Lambda@Edge Function are automatically replicated through…

Francois
- 1,367
- 1
- 15
- 23
41
votes
2 answers
Get hosted zone for cloudfront distribution
I'm trying to use ansible to provision Route53 failover (although the fact I'm using ansible isn't particularly relevant).
I have this task that works:
- name: Route 53 Failover | Add ALIAS
route53:
command: create
zone: "{{ top_level_domain…

Joaquim d'Souza
- 1,416
- 2
- 14
- 25
41
votes
7 answers
What client tools are available to manage Amazon S3 and CloudFront?
I just started using the Amazon S3 and Amazon CloudFront. What proper client tools are out there that I can use to manage my account? Like uploading files etc. Yes I am a developer, but, I am pressed for time, I just want to deploy my apps.
I came…

Saif Khan
- 18,402
- 29
- 102
- 147
40
votes
2 answers
How to solve "x-cache: Error from cloudfront" on SPA
We are having issues trying to make working a SPA with a client router (react router). We are using the concept of have a DOMAIN -> CDN (CloudFront) -> S3 for serving our static files.
We have configured the S3 for serving static files. The CDN are…

chemitaxis
- 13,889
- 17
- 74
- 125
40
votes
3 answers
CloudFront distribution and AWS issued certificate gives SSL_ERROR_NO_CYPHER_OVERLAP
I can't get the Internet <-> CloudFront <-> S3 Bucket working, using an AWS certificate. This is what I did:
Created a certificate, a wildcard one, like: *.mydomain.example.
Created a S3 bucket, no fiddeling with properties.
Creating a CloudFront…

Wrench
- 4,070
- 4
- 34
- 46
39
votes
1 answer
Multiple Cloudfront Origins with Behavior Path Redirection
I have two S3 buckets that are serving as my Cloudfront origin servers:
example-bucket-1
example-bucket-2
The contents of both buckets live in the root of those buckets. I am trying to configure my Cloudfront distribution to route or rewrite based…

Steven Musumeche
- 2,886
- 5
- 33
- 55
39
votes
2 answers
Amazon Cloudfront Cache-Control: no-cache header has no effect after 24 hours
I'm hosting a static website in S3 and using Cloudfront to cache files. I've essentially got 3 files with the following headers:
index.html (Cache-Control: no-cache)
app.js (Cache-Control: max-age=63072000, public)
style.css (Cache-Control:…

Adam
- 12,236
- 9
- 39
- 44
37
votes
4 answers
CloudFront with S3 website as origin is not serving gzipped files
AWS now supports gzipping files through CloudFront
I've followed along with all of the instructions in Serving Compressed Files, and yet gzipping is not working.
I have an S3 bucket set up as a website that CloudFront is using as the…

m0meni
- 16,006
- 16
- 82
- 141
36
votes
5 answers
Cloudfront serving over own SSL certificate
does anyone know if its possible to serve with cloudfront over https with your own certificate while using your own CNAME?
i can't even find a way to set up my own SSL cert over S3... so im not sure if this is even possible.
UPDATE: if someone is…

Toby
- 2,720
- 5
- 29
- 46
35
votes
2 answers
How to redirect HTTP to HTTPS using S3, Cloudfront, and Route 53 using naked domains?
I have a domain (example.com) with SSL support. I am having an issue when trying to redirect a request from www.example.com -> https://example.com.
The error I get when trying to access www.example.com is:
The request could not be satisfied.
Bad…

thisismytemp
- 381
- 1
- 3
- 5
35
votes
3 answers
Amazon CloudFront Latency
I am experimenting with AWS S3 and CloudFront for a web application that I am developing.
In the app I'm letting users upload files to the S3 bucket (using the AWS SDK) and make it available via CloudFront CDN, but the issue is even when the files…

Ahsan
- 2,488
- 2
- 22
- 44
33
votes
4 answers
Using ASP.NET 4.5 Bundling & a CDN (eg. CloudFront)
ASP.NET 4.5 has a great new bundling feature and appears to have some support for use of CDNs. The example given by Microsoft for use of the bundling feature with a CDN is this
public static void RegisterBundles(BundleCollection bundles)
{
…

Mr. Flibble
- 26,564
- 23
- 69
- 100