In my app users can open a website. The website is heavy with content (20MB average). A lot of my users don't have access to the internet at all times, so it's essential that we save any content they open (at the same time they view it). And then the next time they open it, it's completely loaded from the disk.
Here's what I'm thinking:
- Use UIWebView and cache everything .. that's working but UIWebview is depreciated.
- Use WKWebView, but I cannot cache everything :( Im not even sure I can intercept all the requests and responses.
- Use a proxy server inside the app and save all data as it's being loaded from the remote server, I have no idea how to start this.
Basically, I want something similar to https://github.com/evermeer/EVURLCache but for WKWebView
The question: Which approach do you recommend? And how can I get around the downsides mentioned ?