I noticed that if we update the UI image (with new JS app bundle?) the dashboard sometimes breaks for me.
Used Software: Firefox Developer Edition 105.0b2 (64-bit) on Ubuntu 22.04.1 LTS
What happens?
I visit wikibase.cloud, navigate to my dashboard and it's broken. The list of wikis is the wrong count of entries and the data is missing. The /mine API request looks fine, my suspicion is that the app.js gets cached by the browser and somehow doesn't play nicely. If I would reload the page, everything worked fine, but the issue persisted and happened again on the next visit.
A possible solution could be to define some cache control headers for the ui js bundle in its nginx config.
The filenames of the js & css bundles contain a random string to avoid this problem, so I guess we have to look at something else. Maybe the html gets cached?
This article gives a decent overview of controlling client caching with http headers using nginx: https://www.howtogeek.com/devops/how-to-configure-cache-control-headers-in-nginx/
\
ACs:
- we know the error source of this experience