ios webview caching

Partial work for @imurchie to take over.
can you add a comment explaining what's happening here?