| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Website too slow | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#21
|
|||||||||
|
|||||||||
![]() The extra step integration into X-Cart I'm not too familiar with unfortunately. I've performed the steps in our own website but it's a Wordpress website and integrated using that.
With regards to the various subdomains - you can see them on our website as http://cdn1.handsonwebhosting.com up through cdn6 We then call all CSS calls from css.handsonwebhosting.com I guess, using some creativity and programming, you could setup say 6 subdomains (cdn1, cdn2, cdn3 etc) and then making the system choose at random to pick from 1, 2 or 3 on each call. It would definitely require more overhead computer power though. Here's an output of how the CNAME for the different subdomains would look- http://www.digwebinterface.com/?hostnames=handsonwebhosting.com%0D%0Acdn2.handson webhosting.com%0D%0Acdn...4&nameservers=
__________________
Conor Treacy - Big Red SEO - @bigredseo Search Engine Optimization & Internet Marketing - We Bring Your Website Out Of Hiding! If you can't be found on Google, Bing or Yahoo, you pretty much don't exist on the Internet. Omaha SEO Office with National & Local SEO Services Hourly Consulting - great for SEO Disaster Recovery, Audits and DIY Guidance |
|||||||||
|
#22
|
|||||||
|
|||||||
![]() Hi Conor (and everyone),
My page load is getting better and better -- with the new VPS running SSD storage, the bottlenecks at the hardware are all but eliminated. Google pagespeed for home page is 94! Almost there... I am using this technique to set header caching (as described in the Hands-on help file: https://billing.handsonwebhosting.com/knowledgebase.php?action=displayarticle&id=294 ExpiresActive On ExpiresByType image/gif A29030400 ExpiresByType image/png A2419200 ExpiresByType image/jpg A29030400 ExpiresByType image/x-icon A29030400 ExpiresByType application/pdf A2592000 ExpiresByType application/x-javascript A604800 ExpiresByType text/plain A2419200 ExpiresByType text/css A604800 But there are two js cache files not getting their headers set... Code:
Any idea what could be preventing the js files coming from the cdn to have the expires headers not set by htaccess directives? Could it be that x-cart is not setting the file type correctly?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#23
|
|||||||||
|
|||||||||
![]() Nice tip on the header cache. Are those the settings you are using "ExpiresByType"?
If so, I wonder what happens if you change one of the images (re-upload), etc?
__________________
Carl Tice X-Cart 4.6.6 X-Payments 3.0 ReBOOT 3.4.1 PHP 5.6.30 MySQL 5.6.35 Linux 2.6.32-042stab120.18 ionCube PHP Loader v4.7.3 Perl 5.10.1 |
|||||||||
#24
|
|||||||||
|
|||||||||
![]() I'm guessing that since the JS isn't getting accepted by the expires types, that's where the issue sits.
Try adding this to the bottom: Code:
43200 is 12 hours... (seconds x minutes x hours) 60*60*12=43200 seconds So instead of a ExpiresByType, we're using an "FilesMatch". See if that helps resolve the issue. The other idea would be to log into your control panel with your CDN and see if they have a section to allow you to add files or directories to a Custom File List. Possibly you can set from in there and it would set the headers on their end. I've also seen the ExpiresByType set to the following: Code:
__________________
Conor Treacy - Big Red SEO - @bigredseo Search Engine Optimization & Internet Marketing - We Bring Your Website Out Of Hiding! If you can't be found on Google, Bing or Yahoo, you pretty much don't exist on the Internet. Omaha SEO Office with National & Local SEO Services Hourly Consulting - great for SEO Disaster Recovery, Audits and DIY Guidance |
|||||||||
|
#25
|
|||||||
|
|||||||
![]() Quote:
Quote:
I'll reach out to MaxCDN as suggested, and report back. Thanks! J
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#26
|
|||||||
|
|||||||
![]() Just noticed that the cached js files also fail the header caching if https, and NOT coming from cdn (I have the cdn set to only grab http, and not https):
Quote:
SO this is not cdn related. Hmm... Any other ideas? thanks, J
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#27
|
|||||||
|
|||||||
![]() Quote:
Personally I use Code:
__________________
X-Cart GOLD Plus v4.5.4 CDSEO Pro ewdhosting Dedicated Server Dedicated SSL Stone Edge OM |
|||||||
|
#28
|
|||||||
|
|||||||
![]() Quote:
Bingo. Thanks! Can you share your entire ExpiresByType, if you don't mind? Thanks! J
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
|
#29
|
|||||||
|
|||||||
![]() Quote:
That's great! pleased I could help. Here is my Leverage browser caching: Code:
I've noticed that I don't cater for pdf's, so I'll need to sort that out.
__________________
X-Cart GOLD Plus v4.5.4 CDSEO Pro ewdhosting Dedicated Server Dedicated SSL Stone Edge OM |
|||||||
|
|||
X-Cart forums © 2001-2020
|