voila-dashboards / voila

Voilà turns Jupyter notebooks into standalone web applications
https://voila.readthedocs.io
Other
5.39k stars 501 forks source link

Better cache handling/invalidation #1484

Open paddymul opened 1 month ago

paddymul commented 1 month ago

Problem

When updating voila, users get stale 4321.voila.js files. This causes improper loading. To fix this we needed to send users complex cache clearing instructions.

Proposed Solution

It would be nice if the js build process appended a version number so new releases of voila had distinct filenames. That or a query-string cache buster. Even better if this is configurable via a setting so we can force cache busting with new releases.

Additional context

trungleduc commented 1 month ago

It would be nice if the js build process appended a version number so new releases of voila had distinct filenames.

I agree. A PR fixing this would be very welcome!