Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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

share|improve this question
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.