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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anyway to not store pages on Hard Disk w/o Pragma No cache Tags?

Status
Not open for further replies.

rudy23

Programmer
Feb 12, 2004
31
US
Hi

Most of the pages on my site contain sensitive information so I cant cache them or store them on the users HDD. Currently I use these two tags.

Code:
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">

<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-STORE">

However the user experience is horrible as when users click the back button on pages with post data they get a Web Page Expired Warning. Is there any other way to Prevent Storage of the Pages in the Temporary Internet Folders using maybe Javascript or something like that?

Any help Greatly appreciated.
 
You could create your own "Back" button that submits the data to the previous page. I'd advise against disabling the browser's actual back button though. People don't like that.

Adam
while(ignorance){perpetuate(violence,fear,hatred);life=life-1};
 
Create my own Back Button? How do I do that? Are you saying use a gif or something like that? That wouldnt solve the problem when users click the actual browser back button. Also I myself am against disabling of the Back Button.

What surprises me most is that nobody seems to have a solution for this issue...
 
Well, the only way to keep them from seeing the "Web Page Expired" warning is to either use GET (which would show the values in the address bar, not good), or to show them a cached page. The only other thing I can think of is if you submit your form to a hidden iframe which saves the data to a database - then, after the submit, use JavaScript to navigate to the next screen which would retrieve any data needed from the database.

Adam
while(ignorance){perpetuate(violence,fear,hatred);life=life-1};
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top