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

Disabeling Browser Cache, and history in IE/NS

Status
Not open for further replies.

Karl Blessing

Programmer
Feb 25, 2000
2,936
US
Hello Peeps,

I would like to be able to disable the browser cache, and history for both IE and NS.

basically have time-sentative, and security-sentative information, and would like also to have a clean history.

for example:

instead of the pulldown in the adress bar poping up


when you type in
would like it to only save to the history the main page.

and nothing else.

also far as cacheing goes, I think this is mainly for purpose to make sure the content that comes in is fresh (as with NS it's usally a bit more troblesome than NS , as you can sometimes have old page, tho with ASPs, this seems to surprise me)

Thanks in advance.

-Karl Blessing :-V
Karl Blessing aka kb244{fastHACK}
kblogo.jpg
 
did you try the history.location.replace("your_url") ??? i think it'll do the trick (i'm sure you won't get any entry in the history list but the 1st page - that solves your history problem. About the cache, try meta tags maybe ??? but as they can be set both by clients AND server i'm not sure whether it'll work...)
 
with asp, you can set response.expires = 0 to make the page not cache itself -- that way, it will reload each time.

We have a problem here with testing certain pages because of our proxy server LOVES to cache pages (apparently without verifying if they have actually changed since the last load) -- but if I set response.expires = 0 on the page, that always clears up the problem.

good luck! :)
Paul Prewett
 
ok , if we get the history working, cache isnt too much of a problem.

the history.location.replace seemed to work only for the address bar for NS/IE , however it still saved the URLs into History (hit history button on either browser, you see the list of pages)

also because this is in the history, just because you dont see it in the address bar, does not mean you cant press tab a couple time to make the actual URLs that were saved appear (in NS). Karl Blessing aka kb244{fastHACK}
kblogo.jpg
 
really ?? it *did* save the urls in the history list ?!!! i really thought it wouldn't, as we're REPLACING entries ... there would be some "hidden" history list ????? this is weird ....
well, try the simplest, try to use a single frame ... i'm not sure of anything anymore now !!! but it should "hide" all the other pages'url ... let me know ...
 
we cant use only a single frame, the design is stuck the way it is (too much politcal issues to change them, and we are on a deadline) Karl Blessing aka kb244{fastHACK}
kblogo.jpg
 
it doesn't change anything but the 1st page : say your 1st page is index.htm - now your first page is new_index.htm, and its code is :
<frameset rows=*>
<frame src=&quot;index.htm&quot;>
</frameset>
it shouldn't change anything ... only the adress displayed in the url bar (and hopefully the url in the history list should remain the same !!)
 
yes, but via javascript, we do alot of page changing. Karl Blessing aka kb244{fastHACK}
kblogo.jpg
 
what do you mean with &quot;page changing&quot; ? if it's location.href=&quot;url&quot; this shouldn't be a problem ... give it a try ...
 
are you still looking for it ?? coz ... i found a solution :]]] (i found it saturday morning but didn't even switch my home computer this week end ... sorry !)
as usual .... the answer is SERVER SIDE ... i hope you can manage your web server. I was tired last week or something, and i didn't even realized that i had already done what you describe by setting a few option in a netscape server - also i've seen there was an option to do so in tomcat - well now it depends on which web server you're running, if you have nice admins or if there is a forum for it in tt !
hope this helps .... a bit late i know ....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top