Is there a reliable method of preventing page-caching? I've tried using META tags as well as HTTP header directives with no luck. Any ideas or help would be greatly appreciated....
Page caching really only has to do with the web browser. Meta tags and headers only give your browser pointers on what to do with the page, but the browser doesn't necessarily have to follow them.
a pretty effective way I've found to prevent caching is to use JavaScript/Ajax. So, the actual source of the web page is very little more than some JavaScript code, and the JS is instructed to actually get your real CGI page... so this way, when the user hits the back button, it loads the previous page from cache without requesting it... but in this case, all it loads from cache is the JavaScript and not the "real" page content iself. The JS then executes on the client side, forcing a new request through Ajax to your real CGI script, which would then know the user hit the back button since it'd be a fresh new request.
Kirsle... Thanks for the input - I've never used AJAX but I'll take a look at it.
Kevin... My apologies... I should have mentioned that all my pages are written in PERL. Sorry.
As an afterthought, maybe my question should have been "how do I prevent users from using the back button to access previously viewed SSL pages when all pages are coded in PERL?"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.