Force update of css/js files?

Discussion in 'HTML & Website Design' started by Triexa, Mar 20, 2009.

  1. #1
    I've had issues where even when I change my CSS/JS files, some people do not get the updated version and have to clear their cache. Unless I'm mistaken, this is based on the settings of their browser.

    I don't want to do something like append ?[the time] to the file because then it would NEVER get cached.

    I thought about filename-[lastmodified].css and using rewrites but then
    - I have added, possibly redundant rewrites
    - I would have to update this regularly, causing me to have to commit new versions into SVN as well as upload those too. Seems a little... too much. And doing it dynamically causes too much disk reading to programatically get the modified time...

    So, what do you guys suggest?
     
    Triexa, Mar 20, 2009 IP