Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caching between refresh #653

Open
TommasoBendinelli opened this issue Nov 16, 2023 · 2 comments
Open

Caching between refresh #653

TommasoBendinelli opened this issue Nov 16, 2023 · 2 comments

Comments

@TommasoBendinelli
Copy link

Hi @whitphx,
I wanted to thank you for this wonderful project
I am currently trying to build a streamlit app using your code, but whenever I make a change and I need to refresh the browser, it takes some time to reload the page. I was wondering if you have any idea on how to speed this up. Is there a way to cache the page when refreshing the browser?
Best,
Tommaso

@whitphx
Copy link
Owner

whitphx commented Dec 26, 2023

Hi, thank you for using stlite.

Using stlite sharing is one option.
When you click the save button, the Streamlit app in the right pane detects the change and shows the "always rerun" button which you can use for live-reloading.
You can also generate a single static HTML file containing the stlite app you edited from the share button in the header.

FYI, technically, it updates the files mounted on the virtual file system behind the app at runtime so Streamlit's dynamic reloading works, instead of entirely reloading the page and caching.

@Norcim133
Copy link

Love the project.
So I'm actively using the IDBFS. Is there a speedup possible from saving and fetching packages stored in-browser?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants