rblog

Blog performance improvement

I started to get preeettyyy annoyed by the bad performance of my blog. Did some research and decided just give the two lines a try in the .htaccess file


AddOutputFilterByType DEFLATE text/html text/plain text/xml
SetOutputFilter DEFLATE 


And, damn! It seems to work immediately and provide a major performance improvement. Why have I not done this before?

@Update:

Also added

<IfModule mod_expires.c>
       ExpiresActive On
       ExpiresByType application/javascript "access plus 1 week"
       ExpiresByType text/css        "access plus 1 month"
       ExpiresByType image/gif       "access plus 1 month"
       ExpiresByType image/png       "access plus 1 month"
       ExpiresByType image/jpeg      "access plus 1 month"

       # Now we have Expires: headers, ETags are unecessary and only slow things down:
       FileETag None
</IfModule>

Just now I still have some performance issues, but I suspect that to be caused by the database server struggling, not the web server.