title: IOS - How to get cached resources from WKWebView?
body: <p>As I know, caching for the all resources loaded in <code>WKWebView</code> is set by default. There are several post about <em>How to remove cached resources from WKWebView?</em> but I can't find any posts about the way to get it from <code>WKWebView</code>.</p>
  
  <p>For example, when I use <code>WKWebView</code> to load <a href="http://www.africau.edu/images/default/sample.pdf" rel="noreferrer">this url</a>, it displays a pdf file and what I want is getting this pdf file from <code>WKWebView</code> to share after url is loaded completely</p>
  
  <p>I have checked on Chrome, if I want to share the file from above link, it will request and download content from url again after that displaying share dialog. It means that they don't get it from current <code>WKWebView</code> (cached resources).</p>
  
  <p>But on Safari, somehow they show share dialog immediately after clicking on share button and seem like without downloading again. I think they get pdf file from cache or somewhere in <code>WkWebView</code> and share it.</p>
  
  <p>Another way to understand the question is <strong><em>How to get a file which is presented on WKWebView without downloading content again?</em></strong></p>
  
  <p><img src="https://i.stack.imgur.com/9Y9fU.png" alt="enter image description here"></p>
  
  <p>If the question doesn't have enough information for an answer, feel free to leave a comment and I will make it clearer.</p>