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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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 ...
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|...
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 ...
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 > ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
cloudfront-cdn × 26magento2 × 15
cdn × 7
magento-1.9 × 5
aws × 5
varnish × 3
cors × 3
magento-2.1 × 2
nginx × 2
cookie × 2
apache2 × 2
amazon-web-services × 2
magento-1.8 × 1
product-images × 1
cache × 1
redirect × 1
csv × 1
magento2.3.3 × 1
full-page-cache × 1
header × 1
ssl × 1
luma-theme × 1
media × 1
static-content × 1
less-css × 1