View Single Post
  #22  
Old 08-11-2013, 05:19 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Website too slow

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:
Leverage browser caching of static assets: 56/100 FAILED - (No max-age or expires) - http://cdn.domain.com/var/cache/1.bab2d500e39174a1c1761b556d4cf94f.js FAILED - (No max-age or expires) - http://cdn.domain.com/var/cache/2.ab3e3d778d98b7f08bb365608526cf07.js

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
Reply With Quote