There's a cheaper version of your workaround, and the code says why it works.
The file that goes stale is `server_type_models.json`, cached in the app's own directory. The app only deletes it in `invalidateApplicationTypes()`, and the places that call that are the session-reset paths โ login fail...