We have an internal .NET web application, that has few embedded javascript files. Everytime we release a new version of the application, we face the problem where the user's browser has an older version of the js file, and we have to ask them to hit Ctrl + F5 on their browser to fetch latest.
Unfortunately, this is annoying. We were thinking of embedding a random number in the js call like this so the browser sees a changed url and fetches the new js automatically -
Has anyone achieved automating something like this without having to go in and do this manually for each changed js?
PS: Not looking to refresh every single time by appending <%DateTime.Now.Ticks%> or a similar strategy, just looking to automate appending the version for each release.