title: What is the difference between local storage and cache in the browser?
body: <p>When we open application segment in the developer console of chrome, we see many things like:</p>
  
  <ul>
  <li><p>Application</p>
  
  <ul>
  <li>Manifest</li>
  <li>service Workers</li>
  </ul></li>
  <li><p>Storage  </p>
  
  <ul>
  <li>local storage</li>
  <li>session storage</li>
  <li>indexed db</li>
  <li>Web sql</li>
  <li>Cookies</li>
  </ul></li>
  <li><p>Cache</p>
  
  <ul>
  <li>Cache Storage</li>
  <li>Application Cache</li>
  </ul></li>
  </ul>
  
  <p>I know that cache is used for saving the resource locally and cookies are for saving the data in the client side for maintaining the session.
  Cache stores in key value format. </p>
  
  <p>I want to know exactly what the difference is between them.</p>