Caching the javacript resources in the client

Greetings all

I am working on an SPA using reagent and re-frame. I was wondering if there is good way to allow caching and not downloading the generated javascript every time the client refreshes the page, and at the same time, make sure it’s always downloading the latest version of the javascript.

Is there any mechanisms similar to the way Rails asset pipeline generate a digest and uses that as the file name?

like this?

https://shadow-cljs.github.io/docs/UsersGuide.html#NameHashing

Shadow-cljs name hashing is what i’m using as well
But i added a small script to grab the hash and change the file name in my html