-
Notifications
You must be signed in to change notification settings - Fork 0
Caching
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.