sindresorhus / gulp-rev

Static asset revisioning by appending content hash to filenames: `unicorn.css` → `unicorn-d41d8cd98f.css`
MIT License
1.54k stars 217 forks source link

Possible to get rev-ed resources other than images / fonts? #92

Closed geekyme closed 9 years ago

geekyme commented 9 years ago

Perhaps i have this piece of code which attempts to fetch a translation from the server. I want the translations to have a version so I can do some cache busting on it.


function fetchLang(callback){
  return $.get('/api/translations/'+lang+'/');
}

Is it possible to dynamically change that source link $.get('/api/translations/'+lang+'/'); to $.get('/api/translations/125712389312y/'+lang+'/'); ?

sindresorhus commented 9 years ago

http://stackoverflow.com/questions/ask