While navigating with JavaFX WebView component javafx.scene.web.WebView, it was found, that
every request retrieves all resources from the server each time even if previous activities have just
retrieved the resources. This behaviour was verified by capturing and analyzing the network traffic.
The performance impact is considerable.
It seems that by default resources retrieved via http requests are not cached for the JavaFX WebView
component.
As ResponseCache.getDefault() returns "null", it was assumed that no cache mechanism is already
implemented.
It is proposed for component javafx.scene.web.WebView to implement some kind of internal caching.
The idea was verified by implementing a very simple custom cache using the class
java.net.ResponseCache. This increased the application performance significantly.
every request retrieves all resources from the server each time even if previous activities have just
retrieved the resources. This behaviour was verified by capturing and analyzing the network traffic.
The performance impact is considerable.
It seems that by default resources retrieved via http requests are not cached for the JavaFX WebView
component.
As ResponseCache.getDefault() returns "null", it was assumed that no cache mechanism is already
implemented.
It is proposed for component javafx.scene.web.WebView to implement some kind of internal caching.
The idea was verified by implementing a very simple custom cache using the class
java.net.ResponseCache. This increased the application performance significantly.