JCM is a Javascript and Css compressor, written in PHP, primarily, minimize the javascript and css files, then merge them separately into a js cache and a css cache file.
In next step, the cache files compressed over with Gzip method.
So, reducing the network traffic, the server to the client (browser) provides only 2 files (1 JS, 1 CSS), wich are also mutch smaller.
The technique is not unknown, see the following steps:
- Minimize the JS and CSS files
- Cache control based on the files last modified date, so we just compress it again if necessary.
- If necessary, then compress it and merge to 1-1 cache files.
- Compress the cache files with Gzip
Both the JS and the CSS files are stored in order of the collection.
The JS minimize its own code, the CSS minimize by an external code with CssMin 3. CssMin 3 code is original and unchanged.
I would like to note I do not take responsibility for work of JCM! Of course the code is tested, but the devil never sleeps. Any known issues are published.