-
Notifications
You must be signed in to change notification settings - Fork 49
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
[Feature Request] Offline caching of assets #130
Comments
Hi @liango2, The issue you're encountering is because the widget configuration you've selected relies on internet access to fetch assets. To resolve this, you'll need to either build a custom theme or modify an existing one to store the assets locally. Happy to help develop a fully offline-compatible default theme that could be used as the default theme. Thanks! |
Ideally the default config would be something easy + familiar, and also wouldn't require any build tools to accommodate non-programmers (e.g. node/npm). Buildless React has been the best middle ground we've found so far since it's familiar to programmers, and non-programmers don't have to install the nodejs toolchain to do simple changes Re. offline support - it'd be possible to cache assets for offline use. It'd be especially nice to have offline caching of assets like webfonts and 3rd party CSS. I've looked into it a lil bit, info dumping my notes on request caching so far:
The best option seems to be to add a custom protocol (e.g. |
I had a quick look into this part specifically, please correct me if I am wrong but on Windows this will not work it would to be Which is kind of annoying, I wonder if the veryard@1f6ef2d - WIP this was just me playing around at one angle, happy to gather thoughts, we could add the Cache handler to the app state, then eventually have a clear cache button on the context menu. Currently this dumps all files that start with I believe a better approach could be a manifest file that has sha256 hash of the url then we store those and use it as the file name, happy to hear thoughts! Can chat via Discord if that's a bit easier too: Thanks |
Describe the problem/motivation
Excuse me, in the event of a network outage, will nothing be displayed? How can it be displayed even offline?
When there is an internet:
When there is no internet:
Describe the solution you'd like
displayed even offline
Alternatives considered
No response
The text was updated successfully, but these errors were encountered: