0

HTML5 Offline Application Cache Is supported on Safari but is it supported in WKWebView?

I found some links here on StackOverflow but I am unable to implement these methods.

@interface WKPreferences (MyPreferences)
- (void)_setOfflineApplicationCacheIsEnabled:(BOOL)offlineApplicationCacheIsEnabled;
@end

Enable Application cache in WKWebView

Some people are saying html5 application cache not supported in WKWebView.

WKWebView Cache manifest not working IOS8

but I did not find out any docs or references about this in apple docs.

Cheesebaron
  • 24,131
  • 15
  • 66
  • 118
  • 1
    Have you already tried `webView.LoadRequest(new NSUrlRequest((new NSUrl("{URL HERE}")), NSUrlRequestCachePolicy.ReturnCacheDataElseLoad, 10000));` Here's a good resource https://inneka.com/programming/swift/swift-ios-cache-wkwebview-content-for-offline-view/ – Saamer Feb 04 '20 at 19:07
  • [Here](https://developer.apple.com/documentation/foundation/nsurlrequestcachepolicy/nsurlrequestuseprotocolcachepolicy?language=objc) is the document about NSURLRequestUseProtocolCachePolicy and maybe help. This api you posted in the question is an private api. – nevermore Feb 05 '20 at 07:08

0 Answers0