Is there any workaround to auto clear the cache as we update the javascript code? It always happen where when I do the script code changes, from other user device, they won't be able to see the new update of the website because their browser is still reading the old script and they will see this as a bug since they do not know about this cache stuff. I have to mention the cache every time when there is an update made which is giving a bad experience to the user.
Usually for an image, I will set some additional unique id from the get method inside the url so that the website is able to read the latest update. But for javascript / jquery, I wonder if there is any kind of code to force the browser to read the new update instead of manually clearing the cache.