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.
Two solutions come to my mind:
- Writing an Interceptor (servlet filter like) to add to response header no-cache etc.
- Or or put
<meta>
tags at each page.
Which one should I do?