Skip to main content

Questions tagged [cdn]

Filter by
Sorted by
Tagged with
0 votes
2 answers
1k views

Magento 2: How to add external image url / CDN url for product images on category and product details pages?

I am using Magento 2.3.3. I need help to add CDN url only for product's images on category and product details pages. NOTE: Except product images, no images will come from CDN. Thanks in advance.
0 votes
0 answers
51 views

Cloudflare's full html edge cache with Magento cookies bypass

We are trying to setup magento edge cache with cloudflare including html. The url route of bypassing cache on urls alone e.g. /customer, /admin, etc doesn't really work bcoz e.g. when a customer logs ...
17 votes
8 answers
10k views

Advice on Optimizing Site Speed, where to start?

I've been asked to try and find a solution for the slow load time of our Magento site. I ran a Yslow test and the biggest offenders seem to be Make fewer HTTP requests Use a CDN Add Expires Headers ...
1 vote
0 answers
631 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 ...
8 votes
3 answers
7k views

Magento 2: What is Offloader header?

What is the use of Offloader header in CDN? What is the difference between SSL_OFFLOADED and X-Forwarded-Proto. When to use it? Is there any other type as well apart from the above two?
1 vote
4 answers
12k views

Varnish purge is not working when clean the magento cache

We have successfully configured varnish in our magento website, it's working great. But the problem is varnish is not purging when we clear the cache either via admin panel or ssh command. We restart ...
3 votes
2 answers
1k views

Getting cloudflare to work with magento 2

This is a complicated subject for me because I'm brand new to server work so I will do my best to explain what I have done and what the issue is. The bottom line is that as you can see below, my ...
0 votes
1 answer
55 views

Magento 2: CDN Recommended for Magento 2, Community Edition

We were examining the possibility of adding a CDN service for our platforms on Magento 2. However, this possibility had already been adopted in the past and had created several problems with the ...
0 votes
1 answer
38 views

Problem with cache when enabling/disabling extensions

I have a problem with probably caching when I install/enable new extensions which should add custom tabs to the product edit page it never does even when I disable modules with custom tabs on the ...
2 votes
4 answers
2k views

Magento 2: Overiding Admin Theme not working in Production Mode with CDN [SOLVED]

Magento 2: How to enable newly created admin theme & override module? After achieving this I have a new issue now. I'm using CDN & in Production Mode. In the Developer mode, it works fine. ...
0 votes
2 answers
553 views

Get Sku on list image phtml file

I am setting up a new site using 2.4.2 and need to use existing product images which are set up on a CDN, in the following formats: https://website-list.s3.amazonaws.com/xxxxxx.jpg https://website-...
0 votes
1 answer
733 views

Magento 2 : Disable CDN

Is their any way we can disable cdn for media url in magento2 ? I am having issues in order confirmation email. In products it has cdn link for products images, not what i have added in media url in ...
0 votes
2 answers
2k 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 ...
2 votes
1 answer
1k views

How to direct include Vue.js <script> in Magento 2?

I want to use Vue.js in Magento 2 by the Direct Include , but, for some reason, the script doesn't call the content and then, the local Vue script doesn't work. I put the CDN in the header with the ...
0 votes
1 answer
149 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)?
0 votes
1 answer
20 views

Merged Static Contents

Is it possible to generate merged static contents programmatically in magento2? There is issue with sync merged static contents in CDN, multi-server setup with load balancer.
0 votes
1 answer
611 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 ...
2 votes
0 answers
321 views

How do I create a symlink?

We recently setup CDN for the static assets. As an old discussion on the github indicates, advanced JS bundling and CDN don't go together. What is happening is explained below. require.js is trying to ...
0 votes
0 answers
13 views

magento 1 use old cdn instead of new one

I have this in my settings: But site still using old path despite I cleared cache
1 vote
0 answers
96 views

Exclude specific directory for take base_media_url value? (Tainted canvases may not be exported)

I configured a CDN on my Magento site, and on admin, I configured the base_static_url and the base_media_url with the CDN Url on Stores > Configuration > General > Web > Base URLs. These ...
2 votes
0 answers
176 views

Magento 2 config CDN for specific file type only

Magento 2 allow to add another url for static views file, but all static file types will be requested to this url. I want to some only file types be served using that url. Example *.js and *.css ...
-1 votes
1 answer
171 views

What is CDN ? & how to setup CDN in magento 2?

How to setup CDN in Magento 2? How it benefits/improve site performance?
0 votes
1 answer
194 views

How to implement Cloudways CDN on Magento2

I have a website which is hosted on Amazon AWS EC2 and Domain is on 123-reg, I have pointed domain via AMAZON Elastic IP, Please see attached image, Now i want to setup CDN only for static files. How ...
7 votes
4 answers
10k views

Magento 2: How to Solve Defer parsing of JavaScript on CDN?

My website in Production Mode & I set Javascript to be Merged. So we have only one JS file. On Speed related website it keep saying F grade on Defer Parsing of Javascript. I'm using CDN. <...
1 vote
1 answer
448 views

How CDN works in Magento 2?

I am aware about the CDN and configuring it into Magento 2 from system configuration. I just want to know how CDN works internally in magento codebase? As I am developing an module to upload the ...
2 votes
1 answer
1k views

How to use Magento 2.3 and Cloudfare CDN?

I'm currently trying out the Cloudflare CDN (free plan), but I didn't notice much in website performance. My server was having "server load" problems and it did stop, but It seems the website's ...
1 vote
2 answers
536 views

CDN not fully working

just finished the CDN set up for our magento store. Some images/css/js files are loaded fine from cdn server. But some cdn versions redirect back to our hosting. I mean some files can be accessed on ...
0 votes
0 answers
122 views

External (CDN) location images only for multiple domain stores

I have multiple stores on multiple domains (all single store magento installs) that use a lot of the same product images. I want to store all the images in a single location and let the different ...
0 votes
1 answer
259 views

Font files cannot be loaded when using CDN in Magento?

When I use CDN for my Magento site, there is a problem that font files cannot be loaded? I don't know why it does happen. Is there any solution to overcome this issue?
1 vote
1 answer
774 views

How to change font source url from local to CDN?

I have uploaded google fonts on the local server to a custom directory and it seems to work well so far except that the Ultimo theme I am using is picking the base URL to generate font URL path. ...
0 votes
2 answers
176 views

Create new VPS save images and file download on magento

My sites very large size with image and file upload. So, I would like to setup as CDN from another my server2 VPS from current server1 VPS. That server will be storage images and files upload. I ...
3 votes
0 answers
1k 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 ...
0 votes
1 answer
275 views

Pub folder html file: serving from nginx + CDN and CORS

In my pub/static folder I can see that most themes are serving HTML files. However, these are not specifically handled in the Nginx configuration file. When serving the full folder from CDN I get ...
0 votes
0 answers
48 views

Magento 2: CDN Implement

I am using CDN in my website but strange thing is, it's create html file with .js not getting why this come https://abc-f88d.kxcdn.com/frontend/ab/custom/en_AU/Aalogics_CheckoutTooltip/template/group....
0 votes
2 answers
41 views

product image getting bigger as the gallery image number increases magento 2 and vise versa after adding bootstrap css (cdn)

product image getting bigger as the gallery image number increases magento 2 and vise Versa after adding bootstrap css (cdn) How to make the product image load in big size no matter what number is the ...
1 vote
1 answer
783 views

Link CDN url to my product saved in magento 2

I want to Link CDN URL to my Product in magento. So basically all the Images for the product will be fetched using the Image URL Rather than saving it on Magento Website (Project) Is it possible to ...
0 votes
1 answer
3k views

NGINX cross control origin header added but font files still blocked by CORS policy

I have added the following headers to all the locations where my static content is mentioned in the Nginx conf file and it removes the CORS issue for all files except for font files such as woff2 or ...
1 vote
1 answer
1k views

Magento 2 cdn issue for modal popup - KeyCdn

We uses KeyCdn to use cdn feature for magento 2. We use push zone for one of our website for testing. KeyCdn working fine except modal popup CORS issue. We are facing below error. Access to ...
1 vote
1 answer
1k views

Sync google cloud storage with CDN to products images

I have a GCS folder with all my products images and now I've configured a CDN (always with Google) linked to this source. I would use these images for my Magento 2 store, specifically, I 'd like to be ...
2 votes
1 answer
842 views

Fastly CDN not refresh custom page

We have Fastly CDN configured in Website, and we have a custom page where we are displaying product listing. When admin makes changes in the product, it's reflecting correctly in front-end product ...
1 vote
0 answers
156 views

Can't Upload Products images to DigitalOcean CDN?

I have Integrated DigitalOcean CDN with Magento2.2.7 version. I can get images from CDN successfully but when I am uploading product images then it is not uploading to CDN directly. Is required any ...
1 vote
0 answers
133 views

Disable image cdn stuck

I am having an issue with my Magento site and any assistance would be greatly appreciated. I recently migrated my Magento (1.4.1.1) site from Rackspace to a private server. The site was configured to ...
2 votes
2 answers
4k views

Is it possible to serve images from Magento 2 using a URL reference?

I want to serve images from an external CDN. This means: I don't want to store images on Magento's server or use its image cache I want to store image URLs in the database and use them to serve ...
2 votes
2 answers
6k views

Magento 2 - How to use font awesome icons using cdn url?

I'm new to Magento 2. I would like to know how to use font awesome icons in my magento 2 project particularly in linking the cdn url to my project where about would I add this link? Thanks
2 votes
2 answers
2k views

Observer (event hook) for media or images

I want to create a module that will hook events for images being added to products or vendors etc so that when it's saved and was already an existing image (image was being updated) - that it would ...
1 vote
0 answers
98 views

Magento 2 CDN cache

I have enabled CDN for my Magento 2 store static contents. But just would like to confirm, will there be any issue , if I run the below commands? Should I rebuild the CDN cache after running ...
4 votes
2 answers
2k views

Add new custom CMS template directive {{cdnmedia}}

I want to add a new CMS directive to render CDN media URL's just like the media directive: {{media url="wysiwyg/image.jpg"}} Will result in http://www.example.com/media/wysiwyg/image.jpg Now I have ...
4 votes
1 answer
4k views

Why product images are not loading using CDN URL?

I am having two instances. One for Admin panel and One for Front end. I am uploading from Admin panel instance and storing all the images to AWS S3 bucket. And I have created CloudFront (CDN) ...
2 votes
1 answer
2k views

Adding jQuery doesn't seem to do anything

To add the jquery, plus my own file (main.js), I pasted this piece of code in my local.xml: <block type="core/text" name="google.cdn.jquery"> <action method="setText"> ...
1 vote
1 answer
1k views

Static Images Not Loading to CDN

According to GTmetrix, I have 18 static images on the homepage that are not loading via the CDN. I cannot figure out why. I've posted a screenshot of GTMetrix and the Magento backend. Any ideas?