Website performance
These are some quick apache tips to improve the performance of your web site:
- compress your html/css/js content by making these changes to your httpd.conf
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html text/css application/x-javascriptTo see it working, install livehttpheaders addon in firefox, open Tools->Live HTTP headers, and fetch http://www.technologydb.com/. In case some headers are missing, clear your firefox cache. Here are the screenshots:
- cache images, css and js
ExpiresByType text/css “access plus 240 hours”
ExpiresByType image/jpeg “access plus 24 hours”
ExpiresByType image/jpg “access plus 24 hours”
ExpiresByType image/gif “access plus 24 hours”
ExpiresByType application/x-javascript “access plus 24 hours” This will avoid browser making an http call to server for these content types. - Avoid using too many domain names. Each domain require a DNS lookup which is expensive.
- Keep limited number of css and javascripts files. Browsers generally limit parallel number of fetches.
For a full list of advanced tips on website performance you can view this excellent page maintained by Yahoo Exceptional Performance (http://developer.yahoo.com/performance/)

