Making sure a web page is not cached, across all browsers.

Posted by Edward Wilde on Stack Overflow See other posts from Stack Overflow or by Edward Wilde
Published on 2008-09-08T12:08:49Z Indexed on 2010/03/17 20:21 UTC
Read the original article Hit count: 318

Our investigations have shown us that not all browsers respect the http cache directives in a uniform manner.

For security reasons we do not want certain pages in our application to cached, ever, by the web browser. This must work for at least the following browsers:

  • Internet Explorer versions 6-8
  • FireFox versions 1.5 - 3.0
  • Safari version 3
  • Opera 9

Our requirement came from a security test. After logging out from our website you could press the back button and view cached pages.

© Stack Overflow or respective owner

Related posts about security

Related posts about caching