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
0
votes
1 answer

/index.html: better to use no-store or no-cache for cache-control?

When the root page is subject to frequent invalidation, like a news feed, do you generally prefer no-store or no-cache in the response header of cache-control? One advantage of no-store - from what I can tell - is that it spares the browser from…
Slawomir
  • 177
  • 1
  • 8
0
votes
1 answer

How proxy all request that comes to some path like "/app*" to an EC2 instance using Cloudfront?

Right now I have a site hosted in S3 and delivery through Cloudfront and I have an application running on an EC2 instance. the problem is I need to serve the application using a folder in the domain associated with the CloudFront distribution, eg.…
rkmax
  • 178
  • 10
  • 29
0
votes
1 answer

Why do cloundfront signed urls and cookies require account root?

According to this documentation for generating key pairs for use with Cloudfront Signed URLs and Signed Cookies root credentials are required to either generate or upload key pairs. Other key pairs used with AWS, such as EC2 authentication key…
rriehle
  • 151
  • 1
  • 1
  • 5
0
votes
1 answer

Can I add HubSpot's blog as origin in my CloudFront distribution?

Let's pretend example.com is my domain. I'd like to have: HubSpot's provided landing page at example.com/ HubSpot's provided blog at example.com/blog/ my website hosted on AWS S3 at example.com/map/ So, I'm thinking about adding HubSpot's origins…
Defozo
  • 153
  • 1
  • 6
0
votes
1 answer

Auto redirect Amazon CloudFront content from www to non-www

I'm really new to Amazon CloudFront. I have set up an S3 with Cloudfront, then I'm using a custom domain that I setup in CloudFlare. I can access my photo normally with this kind of link : https://cdn.example.com/img.jpg But then, when I try to…
Matz
  • 1
0
votes
1 answer

CloudFront - Much higher miss-rate in North America compared to Europe

I'm serving my software downloads from CloudFront. Miss-rate in North America is much higher than in Europe. In America miss-rate is 55.7% while in Europe it's 19.69%. North America: Europe: The CloudFront is configured for "Best Performance".…
Ivan Nikitin
  • 149
  • 7
0
votes
1 answer

hosting an Angular app - on S3 - and WordPress - on EC2 - on the same domain, with WordPress in a subdirectory

I'm building an Angular website which will also have a small WordPress installation for the marketing/sales team (to build landing pages). our marketing team is adamant that subdomains are bad for SEO, and for GA, and would like the WordPress…
0
votes
0 answers

Using Cloudfront as a reverse proxy

Original domain for which the distribution is set up for www.acme.com Set up an origin: Origin Domain Name: pre-prod.backend.com Origin Path: /abc/asset/acme Cache Behaviour Settings for the distribution: Path Pattern: /asset/* I am expecting…
David Newcomb
  • 275
  • 1
  • 5
  • 14
0
votes
1 answer

How to add the trailing slash in general for an Apache + CDN architecture (without using Apache mod_rewrite)?

I would like to add the trailing slash in general when it is absent in the request URL: when user requests https://example.com/blog, it should be redirected to https://example.com/blog/ when user requests https://example.com/abc.jpg, it should be…
0
votes
1 answer

AWS CloudFront Data Transfer Out

I want to use CloudFront to deliver files(each file size varies from 500 MB to 1 GB) for my users. Pricing for "Regional Data Transfer Out to Internet (per GB)" for India is mentioned as $0.170/GB. Is this means if one user downloads a file of 1GB…
0
votes
0 answers

Cloudfront how to failover between multiple custom origins?

I have a Cloudfront distribution and two origin domains that are not hosted in AWS. I want to failover to the second domain if a file is not found in the first domain. I've created two behaviours, but if the file is 404 in the first behaviour…
Andy
  • 317
  • 2
  • 5
  • 16
0
votes
0 answers

How to block a request which does not has a header using Amazon Web Services

My application back-end was laid on AWS Lambda and exposing API's using API Gateway. And forntend on CloudFront. I want to block a request which does not has a header using AWS service. Can anyone suggest me which AWS service will helpful to do this…
0
votes
1 answer

CloudFront Signed URL : Access denied to "subfolders"

I've several objects on my S3 buckets "AwesomeBucket" : AwesomeBucket/Video/file.mp4 AwesomeBucket/Audio/file.mp3 AwesomeBucket/index.html AwesomeBucket/hello.html From a single cloudfront signed URL i can access to index.html and…
Brice
  • 101
  • 5
0
votes
2 answers

Any way to get CloudFront to accept single-part (top level) CNAME?

We have "go links" where I work, such as http://go.mycompany.com/foo which redirects to an arbitrary location. It's powered by a simple Python app on Google App Engine that keeps a mapping of keyword => url. I'm working on making them work…
jpsimons
  • 103
  • 3
0
votes
1 answer

How do I limit S3 object access to CloudFront only?

TL;DR - How do I block requests for https://s3-eu-west-1.amazonaws.com/BUCKET-NAME/FILE.EXT while allowing requests coming via CloudFront? I followed the AWS documentation "Restricting Access to Amazon S3 Content by Using an Origin Access Identity"…
Tom Brossman
  • 301
  • 4
  • 13