I'm setting up development environment of Apache. I prefer to set a environment variable to be local checked out SVN revision number. The environment variable value is then read in PHP code and put in external JavaScript and CSS URL (as cache bustor). As a result, every time I "svn up" my local code, I got updated JavaScript and CSS URL related to the revision number.
For example, current revision number is 2314 and set to $_SERVER['REVISION']. The PHP page will read this $_SERVER['REVISION'] and render external JS link like this http://www.example.com/2314/home.js. Since there is a revision number in the URL, if local revision is updated, browser cache will be busted for easy development.
Is it possible to achieve this in Apache?
Thanks,
-Morgan