svn - Cache busting and Subversion -


in our web application, whenever change in javascript or css file, there following workflow:

  1. make change.
  2. test it.
  3. commit change in subversion. file has not date postfix because lose change history.
  4. in html file, changed javascript or css resource referenced, change file in question, instance "core_2015_07_01.js" "core_2015_07_14.js".
  5. the tiresome excercise change date in every html file referenced.
  6. when create new html file needs javascript file, need place informs me, date have add in order right (because not see in source in subversion).

i'm content cache busting technique itself, i'm not content handling of files in subversion , on way deployment.

has found better way of managing files in , around subversion?

in past projects, have solved problem in 2 ways:

  1. i using grunt project. has plugin asset versioning. https://www.npmjs.com/package/grunt-assets-versioning

  2. i using apache defined rewrite rule javascript/css files. http://www.particletree.com/notebook/automatically-version-your-css-and-javascript-files/

there should other solutions depending on environment working. idea keep js , css name without version. generate files version , provide way server understand filenames. hope helps.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -