Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Do you use these? If so, what strategies do you have for managing changes to the files?


share|improve this question
up vote 4 down vote accepted

I'm using a small script combined with a .htaccess rule. Basically, the script takes the file modification timestamp and adds it to it's name (in the web page), while the .htaccess rule redirects the file with the timestamp in the name to the corresponding file from the hdd.

I took this from the Particletree blog, here: http://particletree.com/notebook/automatically-version-your-css-and-javascript-files/

It works perfectly for me.

share|improve this answer
+1 - Thanks for the link to that article. Very cool. – Alan Jul 13 '10 at 13:20
That's really cool. You could do the same thing with SVN revision number or some similar tag if the timestamp isn't reliable in your deployment system. There is some overhead with all the extra (internal) requests though. – JasonBirch Jul 13 '10 at 18:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.