I am building a hybrid iOS app around WKWebView
. When the user taps a link the request is hijacked and a new view controller is pushed on the navigation stack. The new controller creates a new WKWebView
and loads the existing request. This enabled the app to "feel" native but have the content rendered on the web.
By use of the Safari debugging tools I've noticed that no assets are being cached between web views. However, if I re-request something in an existing web view all of the JavaScripts and CSS are marked as "cached".
So, is it possible to share the cache between WKWebView
instances? They are already sharing the same WKProcessPool
to share cookies.