Lightscript is a Static File Optimization Script that is able to merge, gzip and cache merged files. It also can coordinate your caching strategies. You can combine for instance your javascript requests to one request with:
http://example.com/scripts/lightscript.php?q=prototype.js|scriptaculous.js|main.js&c=1
With q you can list all files you need and with c you decide whether cache the file or not (c=1 || c=0).
$cache_dir and $script_dir are the variables that point out the place where the scripts are located and where lightscript can store cached files. Make sure that these directories are writeable (777). In the downloadable archive we have created 2 folders (scripts & cache). You can use this folders by default.
Lightscript was introduced in July’10.
Download
Latest version: Lightscript-Version-one
other versions: -