5/26/2015 - 9:58 PM

12.2.13 - Cache Optimization

Various Options

• w3 total cache 
Used these Settings and page speed improved, but got 4 errors (css & js default files):

Finally found a very straight-forward solution, without any plug-ins. I de-activated WT3Cache and pasted the
code at the top of my .htaccess file for the blog. Page speed went from 48 to 68, and no more errors.
Open up your .htaccess file and paste in the following directives at the top of the file:

<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 text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"

• W3 Total Cache settings:

In my Options file, change default value of gzipcompression from 0 to 1:

In Cpanel, go to Software/Services and click on Optimize website.
Select "Compress all content".