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

How to disable page caching in IE and Netscape

Status
Not open for further replies.

alex1311

Programmer
Sep 13, 2000
2
0
0
US
Is this enough, or there is smth else?

<META http-equiv=&quot;Pragma&quot; content=&quot;no-cache&quot;>
<META http-equiv=&quot;Cache-Control&quot; content=&quot;no-cache&quot;>

Thanx.
 
If you are willing to use ASP you could use
<% Response.Expires=-1 %>
as the first line of the document. (must have the extension .asp)
 
&quot;pragma no-cache&quot; is the name of the technique, not how it is coded.

Put this after the <HEAD> tag.
<META HTTP-EQUIV=&quot;Expires&quot; CONTENT=&quot;Mon, 06 Jan 1990 00:00:01 GMT&quot;>

Unfortunately I'm not sure Netscape supports it, although IE does.
 
This will do what you want:
<%@ Language=VBScript %>
<% Response.Buffer=True%>

Hope this helps
 
quick comment - if you just use meta tags, this will only stop the browser from caching the page, but won't stop intermediate caches on the internet from caching it, so you still might not get an up-to-date copy of the page. To stop intermediate caching, you have to set the http headers which you can do as described above using ASP - or I guess through web server settings.

HTH
Tamsin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top