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

set cache lifetime = 0?

Status
Not open for further replies.

DGoulston

Technical User
Jun 17, 2002
21
GB
what vbscript code would i need to set the lifetime of the cache to 0?

thanks

Dal

####################
# #
# Darren@DGoulston.com #
###################
 
There are various Meta Tags that will do this such as :

Response.ExpiresAbsolute = #1/1/1980# ' Client treats page as expired

Response.AddHeader "cache-control", "private" ' Proxies not to cache

Response.AddHeader "pragma", "no-cache" ' Clients not to cache

You can also use some of the settings in IIS / Webserver to do this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top