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!

Need pages to not Cache in web browser

Status
Not open for further replies.

PanelMaker

Programmer
May 17, 2005
34
US
I am trying to make it so that the main Navigation bar for my site will not cache so that different options will appear for different user-types on my site (ex. Registered users will see "Update Account" as opposed to non-registered users who will see "Sign up")

The problem is that the page is cached in the browser so that when I try and display a different set of options even though they have logged in, it still keeps the options for the non-registered user.

here is the entry I put in my personal programming notes on the subject, this should give more background into what I have already tried:
------------------------------------------------------
These tags are supposed to work so that the page that they are placed into does not cache in the browser. They must be used in two places and in that lies the problem, they must be placed in between <HEAD> first before the <BODY> and then after the </BODY> in Lotus notes though, the HTML <HEAD> tag can only be modified in one location, the programmer's pane so we could not find a way to insert a second set of <HEAD> tags

<META HTTP-EQUIV='Pragma' CONTENT='no-cache' >
<META HTTP-EQUIV='Expires' CONTENT='-1'>

This site I went to added this line without explination saying that this is what was shared by Microsoft to be the fix

<META Http-Equiv='Cache-Control' Content='no-cache'>

These links explain the problem and supossed solution exept in our case:

This site says to make use of the &junk command at the end of the URL string so that notes generates a random string of numbers and letters to prevent caching makes since but I have yet to get the &junk to do what is supposed to do

&junk

-------------------------------------------------------
-Panelmaker
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top