Questions tagged [amazon-cloudfront]

Amazon CloudFront is a content delivery network (CDN) offered by Amazon Web Services.

Amazon CloudFront is a content delivery network (CDN) offered by Amazon Web Services.

Official page

398 questions
2
votes
2 answers

Redirecting HTTPS -> HTTPS on AWS?

I have a static website w/ S3 + Route53 + Cloudfront set up. I am successfully able to do the following redirects: http://example.com -> https://example.com http://www.example.com -> https://example.com https://example.com -> https://example.com (no…
2
votes
1 answer

JSON file not rendering when served up from AWS Cloudfront

I have a static JSON formatted file called apple-app-site-association sitting at the root of my webapp (e.g. webapp.foo.bar/apple-app-site-association) which is served up via AWS CloudFront. When I call that file via the URL…
2
votes
1 answer

Different http error code and html body

We are using AWS to host our applications. Yesterday we had an issue and were by accident deleted the "Custom domain names" from the API Gateway. The issue was resolved and the services started working again. Deleting the API gateway was the only…
2
votes
1 answer

CloudFront drops Access-Control-Expose-Headers header when Accept-Encoding is set

I am trying to get CloudFront to serve a gzipped text file along with Content-Length: and Access-Control-Expose-Headers: Content-Length headers so I can display the download progress when using fetch(). The setup I have is: Pre-compress the…
2
votes
0 answers

How to configure Cloudfront for API Gateway with API key enabled?

I configured two API Gateways one with API-key enabled and the other with API-key disabled. For both the API gateways I configured and enabled CloudFront. For the API-gateway which has API-key disabled, the request is served from…
Surya
  • 253
  • 1
  • 2
  • 8
2
votes
1 answer

AWS CloudFront - redirect root domain requests

First time poster on serverfault, apologies if this is in the wrong place. I have a website that I am trying to set up on AWS CloudFront. It is currently configured to serve static web content from S3, this is then picked up and served via…
2
votes
1 answer

Updated static files do not get served with CDN after deployment because of cache

I recently started using AWS Cloudfront to serve my static files with CDN. Since then, when I deploy updated static files such as js or css, CDN doesn't serve updated static files right away. Because of this, Python files (I'm using Django) or HTML…
Jay
  • 21
  • 2
2
votes
1 answer

CloudFront usually misses from browser, hits from cURL

When I load my HTML page in my browser, all requests for assets have x-cache: Miss from cloudfront. If I reload my browser very quickly, I can sometimes get a Hit. If I open my developer tools and "copy request as curl", I reliably get a hit, no…
spiffytech
  • 1,063
  • 2
  • 11
  • 17
2
votes
1 answer

Cloudfront (w/ S3) Static Website Doesn't utilize index.html from sub directories

I have my website hosted on S3 with CloudFront as a CDN, and I need these two URLs to behave the same and to serve the index.html file within the directory: example.com/directory example.com/directory/ The one with the / at the end incorrectly…
2
votes
1 answer

Understanding AWS Cloudfront's origin access identifiers

I do not really understand the security behind AWS Cloudfront's OAI. The only thing it does is switch the bucket's domain. Instead of accessing the bucket with https://s3.amazonaws.com/[Bucket]/* it just switches it with your domain. But again…
2
votes
1 answer

AWS CloudFront - using custom domains

I am a bit confused by Amazons CloudFront pricing structure. So I want to use CloudFront to serve assets from my S3 bucket, with a domain like assets.domain.com and I want to use secured urls like https://assets.domain.com. So in CloudFront I have…
Torben
  • 123
  • 2
2
votes
1 answer

How should I configure DNS for my GoDaddy domain with CloudFront?

I have a static web application being hosted in an S3 Bucket that I am currently hosting with Amazon CloudFront. It is a travel site, so I would like for users around the world to be able to quickly use it. I also want to use TLS for free with ACM…
2
votes
0 answers

Proper way to handle file serving

We have a website where we our daily bandwidth use is roughly 10GB of user generated contents. The software layer is simply Heroku + some addons for DB and monitoring, and we are handling the uploads and data serving with S3 and Cloudfront. The DNS…
nakajun
  • 21
  • 1
2
votes
0 answers

AWS CloudFront with API Gateway's Base Path Mapping for IPv6 support

We currently have some APIs set up in API Gateway, with a Custom Domain Name defined with a Regional Endpoint and Base Path Mappings that map incoming requests to the appropriate API and deployment stage. For example: api.example.com/app1/prod/res1…
Egal
  • 121
  • 4
2
votes
2 answers

How long does it take for an AWS Certificate to update in a Cloudfront distribution?

I have an AWS Cloudfront distribution setup to use an ACM certificate. After updating the certificate, it seems it is not updating yet the certificate the distribution is using. I am guessing this is expected (similar to the update delay in the…
Efren
  • 153
  • 1
  • 11