Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page caching question...

Status
Not open for further replies.

tviman

Programmer
Joined
Jul 25, 2002
Messages
2,123
Location
US
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....

Thanks
 
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.

-------------
Cuvou.com | The NEW Kirsle.net
 
How does your question relate to perl?

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
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?"

Thanks again....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top