NetTalk Central

Author Topic: no-cache and back/forward buttons options  (Read 2179 times)

David

  • Full Member
  • ***
  • Posts: 127
    • View Profile
no-cache and back/forward buttons options
« on: November 05, 2008, 12:03:56 PM »
Are there options to be able to set all my pages to no-cache and also disable the back and forward buttons?  The most important being the no-cache option?  This is for a secure site.

NT 4.31 PR17

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11191
    • View Profile
Re: no-cache and back/forward buttons options
« Reply #1 on: November 07, 2008, 06:47:52 AM »
Hi David,

All dynamic pages, are "not cached" by default.
Static pages with the first line
<!-- NetWebServer -->
are considered to be dynamic.

there is also a property you can set in the WebHandler, say in the ProcessLink method (before the parent call)

self.ForceNoCache = 1

Regarding the browser back button - that's a lot tricker as it's essentially up to the browser as to how they handle that. ie it's a "browser thing" not a "server thing". However if your site is secure, and the pages are not cached, then you should be ok.

You'll notice on banks that they also encourage people to explicitly "log off" before leaving, and explicitly close the browser before leaving - these are both good behaviors as a user when using secure sites..

Cheers
Bruce