title: Android 4.4 giving ERR_CACHE_MISS error in onReceivedError for WebView back
body: <p>I have a webview in my Layout. By default, a search form is opened in it. On search, a listing section appears below the search form. If any link in the list is clicked, the details page opened. Now I want to controlled the back navigation for the webview. I placed this code in Activity.</p>
  
  <pre><code>    @Override
          public boolean onKeyDown(int keyCode, KeyEvent event) {
  
              Log.d("TYPE", TYPE);
  
              WebView myWebView = null;
              if (TYPE.equalsIgnoreCase("REPORT_ACTIVITY"))
                  myWebView = reportView;
  
              if (TYPE.equalsIgnoreCase("FEEDBACK_ACTIVITY"))
                  myWebView = feedbackView;
  
              if (myWebView != null)
                  // Check if the key event was the Back button and if there's history
                  if ((keyCode == KeyEvent.KEYCODE_BACK) &amp;&amp; myWebView.canGoBack()) {
                      myWebView.goBack();
                      return true;
                  }
              // If it wasn't the Back key or there's no web page history, bubble up
              // to the default
              // system behavior (probably exit the activity)
              return super.onKeyDown(keyCode, event);
          }
  
  private WebViewClient webViewClient = new WebViewClient() {
    public void onPageStarted(WebView view, String url, Bitmap favicon) {
              Log.d("onPageStarted", "onPageStarted");
              loadProgressBarBox.setVisibility(View.VISIBLE);
              //view.setVisibility(View.GONE);
          }
  
          public void onPageFinished(WebView view, String url) {
              Log.d("onPageFinished", "onPageFinished");
              loadProgressBarBox.setVisibility(View.GONE);
          }
  
          public void onReceivedError(WebView view, int errorCode,
                  String description, String failingUrl) {
  
              Log.d("Error", "Error code: " + errorCode + "/" + description);
         }
  
  }
  </code></pre>
  
  <p>I have also set a WebViewClient with the WebView. When I going back using back button it is working fine for any version 4.4. But when I am trying in Android 4.4, it is coming back fine from details page to listing page. But as soon as I am trying to go back again, its throwing error code -1 and ERR_CACHE_MISS in description. No page is displayed.</p>
  
  <pre><code>09-04 06:59:05.666: D/Error(1102): Error code: -1/net::ERR_CACHE_MISS
  </code></pre>
  
  <p>How to solve this problem in Android 4.4? </p>