You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clemens edited this page Aug 8, 2024
·
3 revisions
To enable offline use, MyWebstrates can per webstrate cache all requests to external resources such as images or libraries.
To enable caching for a specific webstrate call:
webstrate.cache.enable()
To disable caching for a webstrate:
webstrate.cache.disable()
To see a list of cached files:
webstrate.cache.cached
To remove a file from the cache:
webstrate.cache.remove(url)
NB: Be careful not to cache webstrates that, e.g., make continuous requests to an API.