Posted By: AdamB
As I’m sure we’re not the first ones to deal with this, I figured I would throw it out to the community. How are you ensuring clients update their cache when you update your code? If you’re using the method described above, are you using a process that simplifies the change?
As far as I know a common solution is to add a
?<version> to the script’s src link.
I assume at this point that there isn’t a better way than find-replace to increment these “version numbers” in all of the script tags?
You might have a version control system do that for you? Most version control systems have a way to automatically inject the revision number on check-in for instance.
It would look something like this:
Of course, there are always better solutions like this one.