6

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

http://developer.yahoo.net/blog/archives/2007/05/high_performanc_2.html

4

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.

1
  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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