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

How to stop Caching at client

Status
Not open for further replies.

Anindita

Programmer
May 29, 2001
2
IN
When running my Generator application (Generator embedded in HTML/JSP) on the browser and browsing through it, the last frame of my generator is being cached into the 'Internet Temporary Files' folder. Is there any way to avoid this?
 
Have you tried using the no-cache commands in your HTML and JSP pages?

IE and Netscape each have META tags that will stop the page beiong cached, and the JSP page will also have a command (in asp pages it is <% Response.Expires=0 %>)

For Navigator and IE browsers, add <HTTP-EQUIV=&quot;PRAGMA&quot; CONTENT=&quot;NO-CACHE&quot;> in the HEAD section of the HTML . For IE, and if your whole page is < 64KB, ALSO add a HEAD section to the END of the HTML page like this.
<HTML>

<HEAD>


<META HTTP-EQUIV=&quot;REFRESH&quot; CONTENT=&quot;5&quot;>
<TITLE> blah blah blah </TITLE>

</HEAD>

<BODY>


This is an example of where to place the second header section<br>
so that the &quot;Pragama, No-Cache&quot; metatag will work as it is supposed to.<br>


</BODY>

<HEAD>


<META HTTP-EQUIV=&quot;PRAGMA&quot; CONTENT=&quot;NO-CACHE&quot;>

</HEAD>

</HTML>


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top