jzohrab / lute

DEPRECATED: LUTE (Learning Using Texts) is a self-hosted web app for learning language through reading, based on Learning with Texts (LWT)
The Unlicense
118 stars 10 forks source link

Bust javascript cache on release #53

Closed jzohrab closed 1 year ago

jzohrab commented 1 year ago

Currently, user browsers may cache public/js/lute.js, so when people update they don't necessarily get the latest code. Massively annoying for all.

The release process could easily do something like the following, as a very hacky but workable workaround:

This is all terribly hacky, of course, and the right thing to do would be something that I know nothing about, like WebPack. That belongs in a separate ticket; in the meantime, hacky hack above will do.

jzohrab commented 1 year ago

Using the current git commit short sha as a cache buster, lute.<short sha>.js.