Questions tagged [cloudfront-cdn]

Denotes questions related to Amazon CloudFront Content Delivery Network.

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

Please suggest recommended the method for Magento2 with aws cloudfront CDN

For CDN I have tried AWS CloudFront with the below Architecture For Example current load-balancer site - DNS mapped with the web. example. com I have to create two distributions (media.example.com ...
0 votes
0 answers
100 views

Magento 2 Access-Control-Allow-Origin issue with CDN on aws with Nginx server

Hello All I am getting below error after use aws cloud CDN for static content in magento 2 Access to XMLHttpRequest at 'https://d8k4n5k6wbxhl.cloudfront.net/static/frontend/Sakshemit/Hinine/en_GB/...
1 vote
1 answer
259 views

Magento 2 and Cloudfront as Full Page Cache

I am using Magento 2.3.6 and I am currently in the research phase to use something interchangeably with Varnish as a Full Page Cache. Due to the fact that we use the AWS architecture, we are ...
0 votes
1 answer
110 views

Magento 2 How to Setup (Amazon CloudFront CDN) Alternative Domain Name in Magento 2

How to setup Alternative Domain Name in CDN setup Using AWS(Amazon)?
1 vote
1 answer
139 views

Cloudfront Redirects to Origin only when Static Content Signing is Enabled

I'm using AWS CloudFront with Magento 2.4. When dev/static/sign is disabled, I have absolutely no issues with the CDN. When dev/static/sign is enabled though, all static resources are redirected to ...
  • 769
0 votes
1 answer
373 views

Magento 2.3.5-p1 CDN Configuration Content Security Policy directive

I just configured cloudfront to have a CDN for static files and media, but there's a big problem. As soon as I entered the links to the CDN in the Magento 2 back office, no more CSS / JS / image files ...
1 vote
1 answer
760 views

Problem with Magento 2 and CloudFront AWS

I have a Cloud Front distribution that servers files from '/pub/static' folder of Magento. This distribution has that configurations above: But some files are broken because it's not on cloud front. ...
0 votes
0 answers
3k views

Magento 2 .Woff blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource

Have a Magento 2.3 on Nginx. Trying to set up Cloudfront for /pub/static/ on subdomain like https://static.mydomain.com. Base URL for Static View Files is https://static.mydomain.com. Getting error ...
0 votes
2 answers
1k views

CORS error - HTML and fonts not working properly with CloudFront CDN

I have been trying to get my magento store working with AWS CloudFront for static and media folders. I have one CloudFront distribution for each of the folders. Media files are working fine as well as ...
  • 1
1 vote
0 answers
80 views

Cloudfront not configuring Magento 2 CORS Policy error

I am getting error No 'Access-Control-Allow-Origin' on Magento 2 website.Although i add Header set Access-Control-Allow-Origin '*'.But still its not enable it. enter image description here
  • 624
2 votes
1 answer
2k views

CORS error on Magento 2 with cloudfront

We are running magento 2 on below setup Apache > Varnish > NGinx SSL termination On initial setup we were getting the below error for all assets in pub/static Failed to load xxx: Request header ...
  • 521
3 votes
0 answers
975 views

Magento 2.X: HTML files blocked by CORS if using Cloudfront and no Varnish hit

I have Magento 2.3.2 with nginx backend, SSL only, and proxypass to Varnish. I have configured 2 distributions in my cloudfront CDN to serve media and static files. To handle the CORS issues I have ...
1 vote
0 answers
440 views

CloudFront like reverse proxy instead Varnish

I know that CloudFront is CDN, not reverse proxy, but if I understand correctly now is possible to use CloudFront to serve everything behind it. I found few links, and seems like it is possible. For ...
1 vote
0 answers
281 views

Magento2: Aws CloudFront Product Image cache issue

I have integrated Aws CloudFront in our Magento 2 site. Product image not showing in our site. How to solve product cache issue. When I used CloudFront CDN URL. All images stored in the S3 bucket so ...
  • 1,147
0 votes
1 answer
540 views

Magento 2 - Error the specified key does not exist on Amazon aws cdn

We have created an account in amazon Aws. We have replace the secure base url for static and media files with the domain name that is shown in the AWS distribution. The site is not showing ...
1 vote
0 answers
558 views

Magento 2 static content folder sync

I have multiple EC2 servers running magento 2.2.5 application. I am using Cloudfront CDN for pub/media serving and the source is s3 bucket.Also I have a cron at every 1 minute that sync pub/media to ...
1 vote
1 answer
98 views

Magento 2.1.9, Apache/2.4.10 (Debian) - The header "Cache-Control: private" is adding to all my static files and images

We have a Magento 2.1.9 installation on a Debian Jessie server. It is configured to be connected with Cloudfront CDN for media and static files. The problem is that all the files that are served to ...
2 votes
0 answers
697 views

magento 2 cloudfront xhr html template files not loading

I have created an Amazon CloudFront distribution and updated CloudFront URL to pub/static and pub/media URLs to be fetched from CloudFront. JS, CSS and Images are working fine with CloudFront but xhr ...
3 votes
1 answer
3k views

How to setup AWS Cloudfront for Magento 2

I have been looking everywhere for a solution, and I was following the following documents to achieve this task. https://absolutecommerce.co.uk/magento2-aws-cloudfront-cdn Here they mention ...
  • 151
1 vote
1 answer
811 views

Trying to get CloudFront to work with Magento 2

My problem is that I upload all my products using the import function on Magento, it is easier to upload products in bulk using a CSV file in this way. I have a field for images, and I upload all my ...
  • 31
0 votes
1 answer
1k views

Unable to login in magento admin panel in any browser

I am unable to login in magento admin panel. Magento ver. 1.9.2.4. Reason is in every minute its calling this: Error : {ajaxExpired: 1,…} ajaxExpired : 1 ajaxRedirect : "https://www....
  • 1
0 votes
1 answer
348 views

css not loaded using CDN

The Problem is not loaded stylesheet because its MIME type, "text/html", is not "text/css". We are using cdn on aws. I added to below line on apache server. AddType text/css .css AddType text/...
user avatar
0 votes
1 answer
1k views

Magento 2 : How to set font icon using cdn url

In magento 2, How to set font icon using cdn url. By default font icon comes from theme folder app/design/frontend/{Package}/{theme}/web/css/source/_theme.less file. // Fonts @mobile-cart-padding : ...
1 vote
2 answers
6k views

Using AWS S3 bucket to store media folder

I'm setting up a Magento site on AWS for the first time and want to use a S3 bucket with Cloudfront CDN. I want to store the media folder in an s3 bucket so that I can scale out the servers and they ...
  • 4,743
1 vote
1 answer
2k views

How is Amazon.in/com or Flipkart.com superfast?

I have an eCommerce site and I am comparing the performance with the top players in the market. I want to know what they do differently so I can do the same or set up an action plan to achieve that. ...
  • 13
2 votes
1 answer
607 views

Images in custom /media path redirect some images to get.php when accessed via CloudFront CDN

I have some images stored in media/email/images/. I accessed the images via CDN and all loaded as they should. Afterwards I mistakenly deleted a few images and eventually the CDN URL for the missing ...