Questions tagged [amazon-cloudfront]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

Will replacement of CloudFlare by CloudFront make my AWS site faster?

Time to retrieval of the first byte of my image as a document from an Apache server at AWS (us-east-1) through CloudFlare in an attempt was about 1000 ms. This is unacceptably slow. curl -o/dev/null ...
3 votes
2 answers
1k views

Google intermittently fails to download CSS and JS from CloudFront CDN

We noticed a lot of "Mobile Usability" errors in the Search Console. When I clicked on them and chose "Check live version" option - it always said the page was mobile friendly. However, the mobile ...
3 votes
2 answers
2k views

How to detect search engines on Cloudfront?

Is there a way to "ask" google to add a query string paramater to the url when crawling my website? (maybe in robots.txt?) so that when it crawls example.com, it would add something like ?iam=google . ...
1 vote
0 answers
23 views

WordPress Website & AWS CloudFront Integration: Not accepting credentials from one account, but accepting from another

I am trying to implement CloudFront CDN on my WordPress website. I am using "AWS for WordPress" plugin as recommended in the official AWS documentation here: https://aws.amazon.com/blogs/...
1 vote
1 answer
1k views

Cloudfront all pages not loading/ static website

I am loading a website with S3 and using Cloudfront for a CDN. S3 website has public access and all pages load (verified by loading through s3 endpoint). However when I load the website somaloans.com, ...
user avatar
2 votes
1 answer
28 views

Vendor lock-in when trying to migrate an EC2 wordpress website that serves via cloudfront and stores on an S3 bucket

I was wondering if I have a wordpress website on EC2 instance and it is saving everything on an S3 bucket and serves via cloudfront.. If I want to move my website one day to some other hosting, will I ...
2 votes
1 answer
835 views

CloudFront -- Always a Miss

We are using CloudFront as a CDN. The majority of our objects are caching correctly. For example, https://static-d8.raystedman.org/theme/css/font-lato.css This returns a Hit from CloudFront as you ...
3 votes
1 answer
5k views

Combine Amazon Cloudfront with Cloudflare?

Has anyone tried to combine Amazon Cloudfront with Cloudflare, as below: In Cloudflare, add example.com to Cloudflare and update the DNS to proxy the website. In Amazon, add a Cloudfront distribution ...
4 votes
1 answer
3k views

Use IP address as the Origin when Creating a Cloudfront Distribution?

I am setting up a Cloudfront Distribution. In this article https://aws.amazon.com/blogs/startups/how-to-accelerate-your-wordpress-site-with-amazon-cloudfront/, it said "you can simply type the ...
3 votes
1 answer
489 views

Change the ID or URL of the Cloudfront Distribution to a Meaningful Name?

In Amazon Cloudfront, the ID and the URL generated by the system look like a password, for example, DRGAT6N3K9NAP, it is too difficult to distinguish them if there are multiple distributions. It is ...
6 votes
1 answer
2k views

CloudFront is 301 redirecting all my internal links

I do not know why, but all my internal links are 301 redirects. It is kind of absurd; each single internal link is being redirected to the same resource but as a relative URI. Example: coinsocialmedia....
6 votes
1 answer
3k views

Cannot add "Host" header in Cloudfront

I am trying to add the "Host" header as a custom header when creating an Amazon Cloudfront Distribution. However, I always get the error "The parameter HeaderName : Host is not allowed&...
2 votes
0 answers
99 views

Add "Host" to "Cache key settings" will cause "NoSuchBucket" error

I encounter a problem. When I edit the cache policy by going to "Cache key settings" -> "Headers - Include the following headers" and add "Host" to the list, then when ...
1 vote
1 answer
2k views

CNAME works for nslookup but not curl

I have created two CNAMEs for my (CloudFront) domains, like this: nslookup works, giving me the correct values for both www and d-test — but when I actually get the data, using curl or a browser, all ...
1 vote
0 answers
253 views

Googlebot intermittently fails to download ressources from AWS CloudFront CDN

I have a weird issue and after a few weeks of investigation I think I may have found the cause : Cloudfront & Googlebot. Context : I launched a French website that compares and combines all ...
1 vote
0 answers
97 views

Soft 404 error in Google Search Console for a new PHP based website using AWS CloudFront

I created a new PHP based website. I enabled AWS CloudFront on top of it. When I am doing a URL Inspection on it using Google Console, I am getting a soft 404 error. It's reporting: URL is not ...
3 votes
1 answer
2k views

IllegalLocationConstraintException on CloudFront (with S3)

I have created an S3 and I uploaded files on the bucket successfully. Now, I am trying to make it work with CloudFront however it is giving me IllegalLocationConstraintException The ap-east-1 ...
1 vote
1 answer
3k views

ERROR: The request could not be satisfied - Amazon CloudFront CDN

Amazon's Cloudfront CDN requires correct connection to your origin in order to work properly without any 502 bad gateway error. I did setup everything alright. For example: Cloudfront URL: https://...
2 votes
1 answer
971 views

CloudFront - disable access to distribution via d1234.cloudfront.net

I have a CloudFront distribution with a configured alternative name (e.g. cdn.example.com). Is it possible to restrict access to the CDN via d1234.cloudfront.net name? I don't want it to be indexed ...
2 votes
0 answers
136 views

How can I handle an ISP's request for information that our CDN doesn't capture?

A hosting provider has responded to my detailed abuse complaint with a request for additional information that our CDN doesn't capture: Can you please provide us with exact source port number for ...
4 votes
0 answers
824 views

Google Mobile Friendly Test doesn't download css/js/images reliably (cloudfront + ALB)

I use CloudFront and ALB with AWS and my site always looks good from mobile, desktop and tablet browsers. But in the Google mobile-friendly tool, it often doesn't have random images, css, and ...
1 vote
0 answers
854 views

CloudFront very slow TTFB after enabling HTTP/2

My site was running on HTTP/1.1 with CloudFront at front, Webpagetest reports the load time usually at 2 seconds. Yesterday I enabled HTTP/2 (and SSL) on CloudFront, hoping to see an improvement. The ...
1 vote
0 answers
46 views

Transfering AWS S3/Cloudfront/iAm between User Accounts

I have a Rails site that makes heavy use of S3 and Cloudfront, with a non-trivial setup including multiple buckets for each environment (dev, staging production) and heavily tweaked Cloudfront ...
2 votes
0 answers
983 views

3 seconds to TTFB in CloudFront

I'm trying to improve the speed of a site and I've noticed that it takes 3 seconds to download some images from CloudFront. To download a 18kb image it takes 3 seconds: And it's a Hit from ...
1 vote
0 answers
133 views

example.com is working but www.example.com has invalid certificate using an AWS S3 bucket and cloudfront

On AWS, I created two S3 buckets. One for example.com and one for www.example.com. I selected the option "Use this bucket to host a website" for example.com and selected "Redirect requests" on www....
0 votes
1 answer
62 views

How can any media-driven website be profitable with a CDN?

Long story short, I run a website where users upload their own content. Photos and videos. Everything is posted directly to an AWS S3 Bucket, then propagated out to a CDN. I have users all over the ...
2 votes
1 answer
405 views

How to debug a non working https setup that uses Amazon S3, route53, Cloudfront?

I am setting up a static site with the following: content hosted on S3 (central Europe region) with a custom domain Cloudfront with https route53 for DNS setup redirect http to https redirect www to ...
5 votes
2 answers
3k views

10 megabyte gzip limit in AWS Cloudfront?

My website is a static blog of visualizations and I am serving it via AWS S3. Some of the visualizations use large CSVs, ranging from 1 megabytes to 20 megabytes. I've set up Cloudfront to ...
1 vote
2 answers
2k views

Issues with a Client involving AWS CloudFront and Static IPs

I have a social media website that uses AWS extensively. Through the site we stream video stored in S3, and this video is delivered through CloudFront. I have a Client who is one of our biggest ...
1 vote
0 answers
128 views

Cache-Control not being picked up by performance analysis tools for my website (Amazon CF/S3) [closed]

So, I have this website that is hosted in Amazon S3/CF and when I run any Performance analysis tool I get the following recommendation to set browser caching in some files: So, I set in (most of the ...
1 vote
0 answers
516 views

Leverage Browser caching - not picking up expires header

Currently working on improving my page speed score with Google PageSpeed Insights. My biggest issue according to PageSpeed Insights is Leverage browser caching. About 17 images come back as "no ...
3 votes
0 answers
229 views

Accessing distribution URL directly gives XML error

I'm currently setting up the Amazon Cloudfront distribution and S3 bucket for my Wordpress website. I set up new S3 bucket for the site and i'm using the S3 offload plugin for wordpress to store any ...
2 votes
1 answer
97 views

Double redirect - implications on performance and cost

I recently setup an AWS S3 account and hosted a static site there. I've setup one bucket for the 'www.example.com' and one for the apex domain 'example.com'. The 'www.example.com' bucket redirects to ...
1 vote
1 answer
2k views

Wordpress Reverse Proxy with Cloudfront and S3

I have an angular site / web application example.com hosted on Amazon S3 as a static website. This s3 bucket serves as the origin for a cloudfront distribution and it works perfectly. We have an ...
17 votes
2 answers
15k views

Is there a way of using HTTPS with Amazon's CloudFront CDN and CNAMEs?

We use Amazon's CloudFront CDN with custom CNAMEs hanging under the main domain (static1.example.com). Although we can break this uniform appearance and use the original whatever123wigglyw00....
6 votes
2 answers
979 views

What are the benefits of requiring HTTPS between AWS CloudFront and the origin server?

I am hosting a website on Amazon CloudFront and we've recently updated the distribution to require HTTPS between CloudFront and viewers. With the introduction of AWS Certificate Manager and the ...
2 votes
1 answer
3k views

Webmaster Tools "Fetch as Google" doesn't fetch my js/css/images on a CDN

I've discovered that when I do Google Webmaster Tools --> Fetch as Google on a page on my site (let's call it http://example.com), it shows the static assets (js, css, and images) as Temporarily ...
5 votes
1 answer
3k views

getting CDN images indexed with Google

I have somewhere close to 500,000 user-uploaded images hosted on a Cloudfront CDN -- separate from our main host (exampledomain.com). Up until this point, few of them have been getting indexed at the ...
1 vote
2 answers
39 views

When CloudFront is activated some elements are failing to load

I use WordPress and I'm using CloudFront as my content delivery network. When activating CloudFront some elements, practically icons are not loading, what could be the problem?
0 votes
1 answer
6k views

SEO - why my sites images are not showing in google search [closed]

I have got SEO suggestion like this: "Make sure that Googlebot can crawl your JavaScript, CSS and image files by using the Fetch as Google feature in Google Webmaster Tools." So how to know why is ...
12 votes
4 answers
10k views

Google doesn't crawl CDN files

I've noticed that Google Webmaster Tools is reporting a lot of blocked resources in my website. Right now all the "blocked resources" are .css, .js and images (.jpg, .png) that I serve from Cloudfront ...
1 vote
1 answer
2k views

Why is CloudFront working via one CNAME record but not another?

So assume company name is widget I have elastic beanstalk instance at widget.elasticbeanstalk.com I have a domain name widget.com under Route53 control I have a CNAME record direct.widget.com ...
2 votes
1 answer
601 views

Is there any benefits of using a separate .com domain for CDN?

My company is using AWS CloudFront as a CDN for our website's media content. The previous employee set up a separate .com domain name with CNAME pointing to our cloudfront domain (d3cerlni7****....
1 vote
0 answers
164 views

What is the best way to invalidate an entire Amazon CloudFront cache or recreate the entire distribution?

After asking this question, I have decided to recreate some CloudFront distributions, as so many files need to be invalidated. But instead of creating a new distribution, is it possible to just ...
4 votes
2 answers
1k views

Google crawl rate dropped after activating CloudFront

Previously we've been using Amazon CloudFront for our static content (js, css etc). But to be able to reduce load on our origin servers and to be able to give our international users a good user ...
2 votes
1 answer
120 views

CDN caching my HTML pages too!

Recently I started using Amazon CloudFront to serve my site's JS,CSS and images via CDN. However, seems like with those, CloudFront serving my HTML pages as well? Thus http://mydomain.com and http://...
6 votes
7 answers
501 views

Looking for a CDN [duplicate]

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. ...
4 votes
2 answers
2k views

Do browsers recognize the same files served by different subdomains?

I have my website assets stored on Amazon S3 and served by CloudFront, from a separate domain name, to act as a cookie-less domain (so website.com for the website and websitestatic.com for static ...
3 votes
2 answers
2k views

What's the most efficient & economical way to do GeoIP redirects for a high traffic site?

So, I'm setting up a new potentially high traffic site that's made up of several simple static pages. We want to host it as efficiently as possible, as we're both on a non-existent budget and may have ...
0 votes
1 answer
630 views

How to invalidate images on Amazon CloudFront after optimising them?

After checking on Google PageSpeed Insights, I have optimised the images on several websites using jpegoptim and optipng. Obviously a lot of the images are now smaller and they have new timestamps, ...