faqts : Computers : Programming : Languages : Asp : ASP/VBScript : Common Problems : Caching

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

11 of 15 people (73%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

Is there a way in .asp to set a cache property to zero?

Jul 11th, 2000 20:00
unknown unknown, Joe Riley


Check out:

Phil Paxton's definitive article "Cache No More" at
http://secure.activeserverpages.com/learn/cachenomore.asp

and:

http://www.learnasp.com/learn/cachenomore.asp

You can also use the "Response.Expires" method to guarantee a "Fresh" 
page each time it is called.  Here's some example code:
<% 
        Option Explicit
        Response.Buffer = true 
        Response.Expires = 1441
'This forces a client's request to always call a fresh version of
this page by making the page expire the instant it is received by the
client.
        'this page expired twenty-four hours and one minute ago.
%>

Also ::

There is an absolute expire function in ASP, and you set it to -1, which 
means it expired yesterday.

Response.ExpiresAbsolute = -1



© 1999-2004 Synop Pty Ltd