Hi all,
I am developing a system plugin that will enable compression of javascripts
and css files. Can anyone suggest me a way to cache compressed (minified)
js/css files using the Joomla's built in cache API. My plugin will be
called upon onBeforeCompileHead event and it will catch all the js/css
files registered with the document and will compress files and replace the
url of file to point the compressed file.
Since the files are going through the compression mechanism each and every
time page is loaded, I need to cache the already compressed files and re
compress only if the js/css file is modified or a new js/css file is added.
Thank you.