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?

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

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.