jlynch wrote:
Sorry, I kind of thought this was implied as it had already been discussed
Fair enough - I thought I checked the thread and only found references to renaming the files, not changing the content, though I agree it is implied. Just expected to see it as a step when the process was being described step by step.
Quote:
The way you do it is going to vary utterly based on how you're doing your site but yes, in your root template (Or each page where they're referenced), you need to update the link to use the new number...
Hmm, but in that case, why go through all the hassle of renaming the files? Using a query parameter (e.g., foo.css?v=###) where ### could be the svn repository version means there's nothing to change on the server filesystem, nor any rewrite rules necessary. And if your site is dynamically generated, the reference could be inserted at render time, so no checkout post-processing ever needed (just an "svn update" on the server).
Just as I was doing my final preview of this post I saw your edit and the comment on query tags, so no answer required, but I figured I'd leave a separate opinion in this post, since I'm on the other subjective side in terms of liking the look of a version parameter than a new filename (I guess I see the version as a temporal dimension of the same named file).
Though as an aside, I am interested in experiences where any caches break such approaches. At worst, it may prevent some intermediate caching due to overly conservative caches not caching anything with a query string. Certainly a lot more than css/js would break through any cache not considering query strings as part of the identity of a cached element.
Quote:
I thought that was getting a bit involved and messy to be putting in here, I'll update the explanation I guess.

No biggie - just an extra step of "update content to match" would probably be more than sufficient.
-- David