0

How can i prevent browser using the cached copy of the page after log out ?

When user logged out still they can access the previous pages by using the back button

sam1364tt
  • 153
  • 1
  • 2
  • 13

1 Answers1

0

If you are using Spring Security 3.2 (or later), you can specify the following in your security namespace configuration:

<http>
  <headers>
    <cache-control/>
  </headers>
  ...
</http>

This will set the necessary headers in responses stopping the browser from caching the pages in the webapp.

holmis83
  • 15,922
  • 5
  • 82
  • 83