Connect CDN and WebP optimization
Last updated
Was this helpful?
Last updated
Was this helpful?
Connect CDN for free and get unlimited WebP image optimization for 20$ per month. WebP compression helps to make your store faster reducing image size up to 50%. Visit for more details.
Open a account and attach billing information
if the domain is not already there.
in the register if the domain is not already there.
Point www.yourdomain.com CNAME — lb.ireland.eu.i.readymage.com (for instance created in EU Ireland region), — lb.ohio.us.i.readymage.com (for instance created in US Ohio region), — lb.stockholm.eu.i.readymage.com (for instance created in EU Stockholm region), — lb.central.ca.i.readymage.com (for instance created in Canada Central region), — lb.central.me.i.readymage.com (for instance created in Middle East UAE region) proxy → yes
Point yourdomain.com CNAME — lb.ireland.eu.i.readymage.com (for instance created in EU Ireland region) — lb.ohio.us.i.readymage.com (for instance created in US Ohio region), — lb.stockholm.eu.i.readymage.com (for instance created in EU Stockholm region), — lb.central.ca.i.readymage.com (for instance created in Canada Central region), — lb.central.me.i.readymage.com (for instance created in Middle East UAE region) proxy → yes
Adjust Cloudflare settings according to recommended settings.
Cloudflare setup if you host your domain outside of Cloudflare and can't migrate NS records:
Open a account and attach billing information
Purchase Cloudflare Business Plan for 200$ for the specific domain.
Contact Cloudflare support asking to switch the account using TXT (CNAME) validation method. Cloudflare performs the switch within hours.
Cloudflare support will provide you with the DNS record that you need to add.
Add the provided DNS record to your existing DNS hosting panel and wait for Cloudflare activation.
In Cloudflare point: www.yourdomain.com CNAME — lb.ireland.eu.i.readymage.com (for instance created in EU Ireland region) — lb.ohio.us.i.readymage.com (for instance created in US Ohio region), — lb.stockholm.eu.i.readymage.com (for instance created in EU Stockholm region), — lb.central.ca.i.readymage.com (for instance created in Canada Central region), — lb.central.me.i.readymage.com (for instance created in Middle East UAE region) proxy → yes
In Cloudflare point: yourdomain.com CNAME — lb.ireland.eu.i.readymage.com (for instance created in EU Ireland region) — lb.ohio.us.i.readymage.com (for instance created in US Ohio region), — lb.stockholm.eu.i.readymage.com (for instance created in EU Stockholm region), — lb.central.ca.i.readymage.com (for instance created in Canada Central region), — lb.central.me.i.readymage.com (for instance created in Middle East UAE region) proxy → yes
In existing DNS hosting panel point: www.yourdomain.com CNAME www.yourdomain.com.cdn.cloudflare.net
In existing DNS hosting panel point: yourdomain.com CNAME yourdomain.com.cdn.cloudflare.net
Adjust Cloudflare settings according to recommended settings:
Always Use HTTPS → On
HSTS
Enable HSTS → On
Max Age Header → 6 months
Apply HSTS policy to subdomains → Off
Preload → On
No-Sniff Header → On
Minimum TLS Version → TLS 1.2
Opportunistic Encryption → On
TLS 1.3 → On
Automatic HTTPS Rewrites → On
Managed rules → On
Cloudflare Managed Ruleset
Cloudflare Magento → On
Cloudflare Php → On
JavaScript Detections → Off (if you leave it "on", the performance will decrease slightly, but it will be possible to detect robots more accurately)
Browser Integrity Check → On
Privacy Pass Support → On
Replace insecure JavaScript libraries → On
Polish → Lossy + webP
Mirage → On
Early Hints → On
Rocket Loader → Off (You can try to enable it for sites that are not single-page applications [SPA], for example, for ScandiPWA which is a SPA site it should be disabled)
HTTP/2 → On
HTTP/2 to Origin → On
HTTP/3 (with QUIC) → On
Enhanced HTTP/2 Prioritization → On
0-RTT Connection Resumption → On
Crawler Hints → On
*site.com/static/*, Browser Cache TTL: a year, Cache Level: Cache Everything, Edge Cache TTL: a year, Origin Cache Control: Off
*site.com/media/*, Browser Cache TTL: a year, Cache Level: Cache Everything, Edge Cache TTL: a year, Origin Cache Control: Off
In order to avoid Cloudflare becoming a bottleneck for long backend operations, you can exclude it from Cloudflare.
Set up a separate domain for your Magento 2 admin that differs from your Magento 2 front-end domain.
Point admin.yourdomain.com CNAME lb.eu.i.readymage.com (for instance created in EU region) /lb.us.i.readymage.com (for instance created in US region), proxy → no.