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?

Any help Greatly appreciated.
 
Well you can't have it both ways. If they are filling out a form and need to keep the information "cached" in their browser, it WILL be stored to their computer. YOu can't control that.

the Pragma cache is no guarantee that it will stop people from caching; that's the whole point of internet browsing, making it easier for visitors to see and enjoy your site.
 
Forms is fine. I can always give autocomplete=off for that. I dont want to cache it on the Disk. Or maybe use Pragma No Cache and then Use Javascript to redirect users to previous page when they click back to prevent the Web Page expired.

Any ideas ?
 
Seems that you're not understanding the way browsers work. You can put all the coding you want, you can't "stop" someone from caching it.
 
I think you dont understand the point of this thread. If the user wants to intentionally save the page I cant do anything about it accepted. but if I put these two tags
Code:
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-STORE">

The pages dont get cached and there is pretty much nothing the user can do about it. I just want to make sure that unless the user does sometihing intentionally the pages should not be cached to the HDD.

Please try to understand the issue before making posts.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top