Wednesday, April 30, 2008

Compression and Caching Filters

Found a plugin for FireFox which grades the performance of a web sites actions: https://addons.mozilla.org/en-US/firefox/addon/5369 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 – CacheFilter.zip also has the web.xml entries
* Compression Filter – got from http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html (CompressionFilter.zip)

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

1 comment:

Graham King said...

http://www.networkworld.com/forum/2001/0604faceoffyes.html

mblain@washtech.org