4 votes
Accepted

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

It's probably not fair to compare performance to massive ecommerce sites like amazon, but the techniques they use can never the less still be applied to your Magento store. The first thing it's ...
Jonathan Hussey's user avatar
4 votes

CORS error on Magento 2 with cloudfront

you have typo in headers: Header set Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS' always" Header set Access-Control-Allow-Headers "Host, Content-Type, Origin, Accept" probably must ...
MagenX's user avatar
  • 3,780
2 votes

How to setup AWS Cloudfront for Magento 2

I figured out the issue, it was the URLs base_static_url and base_media_url I was following a tutorial and assumed that magento is very opinionated in terms of url and stuff, But the case is ...
diyoda_'s user avatar
  • 151
2 votes

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

I had this same issue recently. Changing the below Header set Access-Control-Allow-Headers "Host, Content-Type, Origin, Accept" TO Header set Access-Control-Allow-Headers "Host, Content-Type, ...
Nadroj467's user avatar
  • 521
2 votes
Accepted

Magento 2.3.5-p1 CDN Configuration Content Security Policy directive

For me, the only solution was to add a module for CSP exceptions. app/code/mycompany/Csp in the /etc dir, add a file called csp_whitelist.xml <?xml version="1.0"?> <csp_whitelist ...
web master's user avatar
1 vote

Fonts and Luma Icons not loading in Magento 2.4.6 after implementing Cloudfront CDN

In order to determine which assets are served through CDN, you can navigate to the "Behavior" section within your distribution settings. Here, you have the ability to selectively add or ...
Dhaval's user avatar
  • 11
1 vote
Accepted

Cloudfront Redirects to Origin only when Static Content Signing is Enabled

I've found the solution to this issue. My web root is MagentoDir/pub. In pub/static/.htaccess, the RewriteBase was set to /pub/static. When I changed that value to /static/, restarted apache and ...
Hunter's user avatar
  • 789
1 vote

Problem with Magento 2 and CloudFront AWS

Origin path in Origin Settings leave it empty (this is reason why you get error) Default/root/object in Distribution Settings set to your path pub/static (or static) Allowed http methods set ...
BartZalas's user avatar
  • 1,747
1 vote

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

Way-1: pub/static:The path to change the configuration of pub/static is pub/static/.htaccess The origin file <IfModule mod_headers.c> <FilesMatch .*\.(ico|jpg|jpeg|png|gif|svg|js|css|swf|...
matinict's user avatar
  • 1,500
1 vote

Magento 2 : How to set font icon using cdn url

I haven't done this yet in Magento 2 but I believe it should work: @icons__font-path: url(**LINK-TO-FONT-URL**) format('**FORMAT-HERE**'); I used Google fonts as a reference of external fonts, you ...
Ben Crook's user avatar
  • 15.6k
1 vote

Using AWS S3 bucket to store media folder

Now, i'm using bellow solusion. use s3 to store media file use cdn cloudfront point to s3 Config subdomain (gallery.domain.com) point to cloudfront via cname record. In System > ...
dat.tran's user avatar
1 vote

Using AWS S3 bucket to store media folder

Having a quick look at the extension here are the benefits of using the extension rather than setting up CDN through web urls config. I've removed the marketing stuff...: The extension comes ...
mkerstner's user avatar
  • 536

Only top scored, non community-wiki answers of a minimum length are eligible