Search the Community
Showing results for tags 'speeding up your website load times'.
Found 1 result
Now I am always skeptical when people tell me they have a new way to speed up my website! However it can some times be true and help. So here is one simple way to do this using your .htaccess file. Its explained In depth in this article. https://varvy.com/pagespeed/cache-control.html First lets bench mark your site as it is so we have something to compare the changes against. Use this link to do this. https://tools.pingdom.com/ Once you have a load time make a note. Now open your .htaccess file and add the following code. # One month for most static assets <filesMatch ".(css|jpg|jpeg|png|gif|js|ico)$"> Header set Cache-Control "max-age=2628000, public" </filesMatch> This is basically telling the browser of any one coming to your site to keep stuff in the cache. The article goes into more depth about this and how it works. Now save and close your .htaccess file, that's it. Now press f5 key to clear your browser cache, or go to settings and clear it. Now go back to https://tools.pingdom.com and run the speed load test again. Has it made any improvement? If yes then your all good and enjoy the faster loading of your site. If not then never mind just remove the code from your .htaccess file. I have seen small improvements on every site I have tested. If you alrady have this set in your .htaccess file then you dont need to do this.