Prevent CDN caching your updated JavaScript files Posted by saiki on Monday May 11, 2015 @07:31AM from the sketchboard.io dept. http://sketchboard.io/blog/2015/05/11/minish.html ( 1 comment | on HN )
extract some value from the file that changes with its content --like content's md5, or modified timestamp-- and append it to the file name
for example, let's say "index.js" and its md5 is "30c2234" (shortened for readability)
later when you modify the file, the hash change, and clients start to request the new one.this allows to set cache's evict time in doomsday