How to refresh javascripts

I have a custom script on my page. When I edit that script I expect those changes to appear on the main but they don’t. Force refreshing doesn’t work either. How can I resolve this?