Leverage browser caching | Joomla Speed Tips

Enable Leverage browser caching for Joomla websites

If you use firebug with either the pagespeed or Yslow plugin, you'll be familiar with the persistantly red, top warning of 'Leverage browser caching' ('Add Expires Headers' with Yslow)

This can be quite simple to fix by adding the following lines at the bottom of your .htaccess file.

<IfModule mod_headers.c>
Header unset ETag
Header unset Last-Modified
FileETag None
<FilesMatch ".(ico|gz|JPG|jpg|jpeg|png|gif|js|css|swf)$">
Header unset Cache-control
Header set Expires "access plus 1 month"

This will remove the header for 'last modified' and 'etag' and set a header expiration for other filetypes. You have to have mod_expires insalled on your server.

Should get you a few bonus points with page speed!

Another good speed tip is to load mootools directly from google

and Stopping mootools from loading

and gzip files through .htaccess