Wednesday, April 30, 2008

Compression and Caching Filters

Found a plugin for FireFox which grades the performance of a web sites actions: it’s from Yahoo.

The main issues I found where:

* Too many javascript and css files resulting in multiple http get requests
* Not caching the javascript and css files
* Not caching images
* The javascript files were too big not minimized or obfuscated
* Not compressing the requests response back to the browser

I’ve been able to resolve these issues by using two Filters:

* Caching Filter – also has the web.xml entries
* Compression Filter – got from (

I combined as many js files into one file and then did the minimizing using a tool from Yahoo:

1 comment:

Graham King said...