Hello,
If someone looks for an improvement regarding page testing with gtmetrix.com or tools.pingdom.com, you need to adjust your root .htaccess file. Check the steps below:
1. add following to your .htaccess file at the very TOP:
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/javascript "access 1 month"
ExpiresByType application/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
But, be very careful with the values; if you update your application constantly (let's say once per month), you should set values less than the actual! Otherwise, your users won't get the updates properly!
2. by default, apache doesn't have the function "expires_module" activated; how to activate?
If you have SSH, simply in your terminal type following (once you're on root):
sudo a2enmod expires (wait until it shows "Enabling module expires.");
Then type:
service apache2 restart
Wait 5 minutes or less till the service starts.
That's it. You'll have leverage browser caching enabled and activated. This will increase dramatically your performance.
Cheers,
Alex