title: Prevent IE caching
body: <p>I am developing a Java EE web application using Struts. The problem is with Internet Explorer caching. If an user logs out he can access some pages because they are cached and no request is made. If I hit refresh it works fine. Also if an user goes to login page again it won't redirect him because that page is also cached.</p>
  
  <p>Two solutions come to my mind:</p>
  
  <ol>
  <li>Writing an Interceptor (servlet filter like) to add to response header no-cache etc.</li>
  <li>Or or put <code>&lt;meta&gt;</code> tags at each page.</li>
  </ol>
  
  <p>Which one should I do?</p>