MaxCDN Content Delivery Solution?
I'm interested in giving maxcdn a shot, however I'm concerned with how it will handle the https in my shopping cart.
Anyone have a solution that will allow me to use maxcdn for the non-https, and serve from the main server for https? Thanks In Advance! Lyn |
Re: MaxCDN Content Delivery Solution?
I've experimented with different configurations but this principle has proved the most effective:
Open smarty.php FIND: Code:
$smarty->assign("SkinDir",$xcart_web_dir."/skin1"); REPLACE WITH: Code:
// WCM - MaxCDN Implementation |
Re: MaxCDN Content Delivery Solution?
Thanks Jon. Does that cover CSS or JavaScript?
Lyn |
Re: MaxCDN Content Delivery Solution?
Will cover css, javascript, images, and anything else called from the skin1 folder.
|
Re: MaxCDN Content Delivery Solution?
Awesome! Thank You!
Lyn |
Re: MaxCDN Content Delivery Solution?
We've put this up as a tutorial at MaxCDN for X-Cart.
|
Re: MaxCDN Content Delivery Solution?
I must be reading this incorrectly, which wouldn't surprise me, but to me, it looks like that code says if https is on, then use max cdn, . . . . shouldn't it be the other way around? Or am I reading that wrong?
Thanks Lyn Edit: I must be reading it wrong, because i tried it as you posted, and obviously it works. Thanks Lyn |
Re: MaxCDN Content Delivery Solution?
if ($_SERVER['HTTPS'] != 'on')
!= means does not equal. So if if https is not on it will use CDN, if https is on it will use default x-cart location. |
Re: MaxCDN Content Delivery Solution?
Hi Guys,
What sort of results are you seeing from using a CDN? Is it worth the additional costs? How difficult was the deployment? Thanks, Matt |
Re: MaxCDN Content Delivery Solution?
Deployment took a few hours. It did definitely help our speeds especially in foreign countries.
|
All times are GMT -8. The time now is 09:53 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.