Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8014501

JavaFX WebView component to use internal cache

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P3 P3
    • 7-pool
    • 7u21
    • deploy
    • None
    • generic
    • generic

      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.

            ngthomas Thomas Ng (Inactive)
            thlenz Thomas Lenz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: