| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
MaxCDN Content Delivery Solution? | ||||
|
|
Thread Tools |
#1
|
|||||||||
|
|||||||||
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
__________________
Lyn Askin X-Cart 4.2.3 MICR Toner Toner Cartridges X-Cart Search Engine Optimization |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: MaxCDN Content Delivery Solution?
I've experimented with different configurations but this principle has proved the most effective:
Open smarty.php FIND: Code:
REPLACE WITH: Code:
|
|||||||||
#3
|
|||||||||
|
|||||||||
Re: MaxCDN Content Delivery Solution?
Thanks Jon. Does that cover CSS or JavaScript?
Lyn
__________________
Lyn Askin X-Cart 4.2.3 MICR Toner Toner Cartridges X-Cart Search Engine Optimization |
|||||||||
#4
|
|||||||||
|
|||||||||
Re: MaxCDN Content Delivery Solution?
Will cover css, javascript, images, and anything else called from the skin1 folder.
|
|||||||||
#5
|
|||||||||
|
|||||||||
Re: MaxCDN Content Delivery Solution?
Awesome! Thank You!
Lyn
__________________
Lyn Askin X-Cart 4.2.3 MICR Toner Toner Cartridges X-Cart Search Engine Optimization |
|||||||||
#6
|
|||||||||
|
|||||||||
Re: MaxCDN Content Delivery Solution?
We've put this up as a tutorial at MaxCDN for X-Cart.
|
|||||||||
#7
|
|||||||||
|
|||||||||
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
__________________
Lyn Askin X-Cart 4.2.3 MICR Toner Toner Cartridges X-Cart Search Engine Optimization |
|||||||||
#8
|
|||||||
|
|||||||
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. |
|||||||
#9
|
|||||||||
|
|||||||||
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 |
|||||||||
#10
|
|||||||||
|
|||||||||
Re: MaxCDN Content Delivery Solution?
Deployment took a few hours. It did definitely help our speeds especially in foreign countries.
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|