It would be useful to have a function such as webview.clear_cache() to flush the cache dynamically. Currently, you can use private mode, but that clears both cache and cookies, and only on exit.
Example of how private mode isn't sufficient: I am creating an app that requires authentication with a remote server and then downloads some media assets. The user can choose to open multiple windows (say, a media display window and a configuration window). In private mode, opening each window requires the user to re-authenticate, since cookies aren't shared between windows in private mode. However, the media files sometimes change, requiring the cache to be cleared so that the new image (with same filename) can be shown.
It would be useful to have a function such as
webview.clear_cache()to flush the cache dynamically. Currently, you can use private mode, but that clears both cache and cookies, and only on exit.Example of how private mode isn't sufficient: I am creating an app that requires authentication with a remote server and then downloads some media assets. The user can choose to open multiple windows (say, a media display window and a configuration window). In private mode, opening each window requires the user to re-authenticate, since cookies aren't shared between windows in private mode. However, the media files sometimes change, requiring the cache to be cleared so that the new image (with same filename) can be shown.