On alternative (compression without concatenation) can be accomplished by adding the following section of my
Master .htaccess to your site's .htaccess (or use Admin Tools Professional's .htaccess Maker feature):
########## Begin - Automatic compression of resources
# Compress text, html, javascript, css, xml, kudos to Komra.de
# May kill access to your site for old versions of Internet Explorer
AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css application/xml application/xhtml+xml application/rss+xml application/javascript application/x-javascript
########## End - Automatic compression of resources
If you also want to concatenate the CSS and JS files, you can use a third party extension like
CssJsCompress which does a
much better job than Gantry's cache. Moreover, it produces files named css-*.php and js-*.php in your cache directory. This allows us to add customized rules to allow access only to those PHP files in the cache directory. It is still a security hole, but it's better than allowing access to any PHP file.
That said, one of the features on my to-do list for the next version of Admin Tools is the inclusion of a smart CSS/JS aggregator and compressor. The idea is that instead of serving the aggregated media files as arbitrarily named PHP files they will be served by a Joomla! plugin with a URL in the format of http://www.example.com/index.php?atcss=IDENTIFIER.css. As this method doesn't require direct access to executable (PHP) files in a directory it is much safer and doesn't degrade your site's security.
Nicholas K. Dionysopoulos
Lead Developer and Director
🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!