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


1 Answer 1


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.

  • 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
    Commented Jul 13, 2010 at 18:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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