e.g.
/js/1476929634/myscript.js instead of /js/myscript.js
Then use your webserver to rewrite /js/<any number>/myscript.js to /js/myscript.js
Plus, once it's configured you never have to worry about it again.
import hashlib as h int(h.sha256(b" ").hexdigest(), 16)
h.sha256(b" ").hexdigest()
It's longer, but even a 256-hash isn't that long? (and sha1 would probably be fine, obviously)
e.g.
/js/1476929634/myscript.js instead of /js/myscript.js
Then use your webserver to rewrite /js/<any number>/myscript.js to /js/myscript.js