Render the app without running Python if already visited (caching rendered views?)

It would be good if there is a way (library/middleware/proxy/built-in feature/…) to show the Streamlit app view without launching the Python runtime after the view is rendered once.

For example, when you have a dashboard app built with Streamlit and its content is not updated so frequently, the dashboard view should be cached and the cached view should be displayed for the subsequent accesses, because If you are hosting the dashboards on a pay-as-you-go container service for instance, starting the container upon every access increases the cost. From the users’ view point, in addition, they just want to see the single dashboard view and they don’t want to wait so long until the first view is responded.

It’s so helpful either if such a feature is supported by the core somehow or if some third-party technology or how-to guide is created to realize it.

3 Likes