IT
Web Multimedia
How to make Joomla Faster – Tip #1 Apache Mod_expires
|
|
Now that Google is using website speed as a “signal” in it’s ranking algorithms (see related article) it is more important than ever to make your website as fast as you can without sacrificing your quality of content. There is one simply and easy change you can make to Apache (even if your website is hosted) to make your Joomla website substantially (80%+) faster for returning visitors.
When someone visits your website for the first time, it stands to reason that the page html, images, style sheets (css), flash swf's, etc will all have to be downloaded from your website to render your webpage in the visitor's browser. However, when someone returns to your website, it shouldn't be necessary to re-download those same images, stylesheets, flash swf files, etc.
Joomla appears to do a poor job (compared with Wordpress) of setting the browser cache expiration so that RE-downloading those same images, stylesheets, flash swf files, etc does NOT take place. The Apache mod_expires change I detail below will fix this, and this resulted in a more than 100% increase is speed for returning visitors on this website.
Go to this awesome website to measure your current website performance.
| ########## Begin Enable Caching ########## # # enable expirations ExpiresActive On # expire images after a month in the website visitor cache ExpiresByType image/gif "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/x-icon "access plus 1 month" # expire stylesheets and javascript after 1 week in the website visitor cache ExpiresByType text/css "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" # expire flash and XML 1 month and 1 week respectively in the website visitor cache ExpiresByType application/x-shockwave-flash "access plus 1 month" ExpiresByType text/xml "access plus 1 week" # ########## End Enable Caching ########## |
Repeat the website performance test you performed at the start of this article and compare the difference. You should see a dramatic improvement! If you do, please post your results in the comments below!
You can see the performance of this website after the Apache Mod_expires change below.
Please leave me a comment if you found this article useful or if you have any questions.
- I did the test and received 47 seconds, this is not ok, right? - the site is tooo slow :/
| < Prev | Next > |
|---|