title: Using a UIWebView with loadHTMLString/loadData breaks the back and forward buttons, workaround?
body: <p>There's a known problem with embedded UIWebViews that if you load data into them using loadHTMLString or loadData, the canGoBack/canGoForward properties and goBack/goForward methods don't work.  These only work when using loadRequest.</p>
  
  <p>Since Safari's normal app cache doesn't work in embedded UIWebViews, creating a native app that effectively caches otherwise live content becomes impossible/unusable.  That is, I can cache the contents of the HTML, Javascript, images, etc. and load them via loadHTMLString or loadData, but then the back and forward buttons don't work.</p>
  
  <p>I could also use loadRequest and specify a file URL, but that breaks when it comes to communicating with the live site -- even if I specify a  tag (because of cookie domain issues).</p>
  
  <p>I have a work around that involves basically re-implementing the app cache using local store (and not having the native app do any caching itself), which is OK, but not really ideal.  Are there any other work arounds/something I missed?</p>