Disable caching in HTML
Hi,
Is there a way to disable caching programatically in HTML? I use a lot of HTML pages, and when I type a URL in Internet Explorer, it shows me a lot other HTML pages that have been cached. I don't want these pages to be cached for security reasons. I need to programatically disable caching of HTML pages on the client machine where these pages will be accessed. Thanks |
Wait you mean to say you're concerned about security or privacy? And you're using Internet Explorer? Whew, good luck on that.
I don't remember the link, but I'm remember reading article on clearing Internet Explorer history and it looked like a real pain. Attempting to clear it manually could probably take a good 5 minutes out your life. And to make things worse... This is just the stuff the author knew about. In actuality who knows how deep within the system the history is buried. Internet Explorer is integrated tightly with Windows. I wish you the best, really I do. But it looks like a lost cause for Internet Destroyer. I recommend Firefox or actually any browser thats NOT Internet Explorer. Or better yet, take DSL on small usb stick with you whenever you plan on going on public computers. |
I tried this & it's not working :confused:
Code:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> Thanks |
Quote:
|
Quote:
If user information being leaked somehow from cached html pages is the concern.. you could use server-side scripting to generate html interfaces. That way the page cached is nearly useless locally. All that would be left is some cached images and a completely broken interface. However some further research shows a microsoft recommend way. http://support.microsoft.com/kb/q222064/ And another way thats more along the lines of my thinking. http://www.pacificnet.net/~johnr/meta.html Sadly though, not all the rules are not necessarily followed and browsers, particularly Internet Explorer, are known to do their own thing. So it looks like CGI is the only way to make it bullet. It could be very tedious. But basically your (cached) html page would end up looking like this. <html> <form METHOD="GET"> bunch of cryptic of calls that result html being displayed calls that are only valid for a specific amount of time from a specific ip </form> And on your server side... Check ip of client. accept strange cryptic cgi calls that produce html interfaces for x period of time from that specific host But NATs could potentially break this. So you're left with cookies. And since cookies can be manipulated you're back to square one. And even if they didn't, a caching proxy could still ruin you, especially if the proxy was somehow able to freeze cookies in time. Unfortunately it basically looks like theres no hope at all. :( Unless you use https perhaps. Would save some trouble. You'll notice typing https://anypage reveals that atleast https pages are'nt cached. |
All times are GMT -5. The time now is 03:54 AM. |