I found that the blog loaded slow, yeah right, slow server, slow internet connection. Nope… well could but not likely.

Cache expire

Adding cache expire tags to files was quite a simple thing, just add the following to your .htacces file

   # TN - START EXPIRES CACHING #
   ExpiresActive On
   ExpiresByType text/css "access 1 month"
   ExpiresByType text/html "access 1 month"
   ExpiresByType image/gif "access 1 year"
   ExpiresByType image/png "access 1 year"
   ExpiresByType image/jpg "access 1 year"
   ExpiresByType image/jpeg "access 1 year"
   ExpiresByType image/x-icon "access 1 year"
   ExpiresByType application/pdf "access 1 month"
   ExpiresByType application/javascript "access 1 month"
   ExpiresByType text/x-javascript "access 1 month"
   ExpiresByType application/x-shockwave-flash "access 1 month"
   ExpiresDefault "access 1 month"
   # TN - END EXPIRES CACHING #

zip, gzip, deflate

There should probable be some >IfModule stuff around it, but the server is not complaining and I got some points on both test sites. Great :-)

Do some zipping, said both test site. I googled deflate and apache and bingo. Again a simple addition to the .htaccess file. This time one should add

<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/css text/javascript application/javascript application/x-javascript
</IfModule>

Yes, I am learning