Hi all,
I'm developing a PHP site that serves static content from a cookie free domain (Thanks SO Blog!), this domain serves content with a high cache which among other things means that I'm unable to change content (JS, CSS and images) without invalidating that cache. Currently I do this by appending ?revision (e.g. style.css?19) to the end of the static URL, currently I'm doing this manually which is obviously far from convenient.
What would the recommended way to complete this be? I'm using Subversion and from my understanding there's various tools I can use to grab the revision number - but how would I go about getting this into PHP (it doesn't seem very performance wise to run this every page load?). I'm guessing I should most likely be using some sort of build system.
Any recommendations would be greatly appreciated.
Thanks