question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[WebView] Caching contents WebView using the cachePolicy

See original GitHub issue

Currently the UIWebView is not caching the contents of webview. We need a provision to set cachePolicy if there is a boolean prop to set cache policy to the webview.

  NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:URL cachePolicy:NSURLRequestReturnCacheDataElseLoad timeoutInterval:15.0];
  [_webView loadRequest:theRequest];

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

10reactions
WangNingning1994commented, Sep 13, 2017

on man, why close this

9reactions
vvavepacketcommented, Jul 5, 2017

this is important, pls dont abandon this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[WebView] Caching contents WebView using the cachePolicy
[WebView] Caching contents WebView using the cachePolicy. mkonicek. Moved from https://github.com/facebook/react-native/issues/1344.
Read more >
WKWebView - What configuration is - Apple Developer
I am configuring URLRequest object with a cachePolicy of .useProtocolCachePolicy and using the load(request:) method on the webview instance. The remote ...
Read more >
WebView ignore Cache policy on subsequent pages
Hi, I know this is quite old, but how did you override the UIWebView behavior of setting the cache policy to "ignore local...
Read more >
Clean Android WebView caching - Medium
The solution was clear, we will use a MutableContextWrapper to create the WebView . Whenever we would need the cached instance we will...
Read more >
Cache-Control - HTTP - MDN Web Docs
The Cache-Control HTTP header field holds directives ... for content updates while reusing stored content, no-cache is the directive to use.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found