title: Remove Template cache on logout Angular.js
body: <p>How to remove Angular template cache once user clicks on logout? We did thorough research and tried to implement most of the solutions available out there. we tried following</p>
  
  <p><strong>HTML Meta Tags</strong></p>
  
  <pre><code>&lt;meta http-equiv="Cache-Control" content="no-cache" /&gt;
  &lt;meta http-equiv="Pragma" content="no-cache" /&gt;
  &lt;meta http-equiv="Expires" content="0" /&gt;
  </code></pre>
  
  <p><strong>Server side</strong></p>
  
  <pre><code>res.setHeader('cache-control', 'no-cache', 'no-store', 'must-revalidate');
  </code></pre>
  
  <p><strong>Javascript</strong></p>
  
  <p>We tried to delete browser history as specified on this <a href="http://www.codeproject.com/Tips/135121/Browser-back-button-issue-after-logout.aspx">blog</a> </p>
  
  <p>Problem we are facing right now is when a user logs out from our app and press back button he is shown empty html templates as services are not cached how shall we make sure templates are not cached either? </p>