Schepp / CSS-JS-Booster

An easy to use stand-alone PHP-Library (but at the same time also a Wordpress plugin) that combines, optimizes, dataURI-fies, re-splits, compresses and caches your CSS and JS for quicker loading times.
http://twitter.com/derSchepp
GNU Lesser General Public License v3.0
304 stars 38 forks source link

[ENHANCEMENT] Clean urls #19

Open vvo opened 14 years ago

vvo commented 14 years ago

Since we're planning to pass parameter by config files, why not now have calls to css and js files like this :

/CSS-JS-Booster/booster/css.md5.timestamp.datauri.css /CSS-JS-Booster/booster/css.md5.timestamp.mhtml.css /CSS-JS-Booster/booster/js.md5.timestamp.js

With help of htaccess of course it could also means that the web server could direclty read the files instead of calling a php script.

Apache can do rewrite rules to css.php or js.php only based on the fact that "does the file reall exists?" => yes => give it to me / no => call css.php or js.php based on file request

It would be safer i think.

I also know this is huge work but will definitely give css-js-booster a big advantage in the dynamic css js generation "world" :)

vvo commented 14 years ago

This is tricky because i can't see atm how to know then wich files to merge/minify if the url does not contain the files. Perhaps we we'll have to use only config files and references them in the urls