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!

prevent caching across the board

Status
Not open for further replies.

maboo59

Programmer
Mar 21, 2005
18
US
I have a web application with over 20 pages that are used. In each of these pages I include a file to build a toolbar on those pages.
If I add the following code to the include file, will this prevent caching for the main page or just the include file?

<%
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 2
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "No-Store"
%>
??
thanks
Maboo59
 
did u means to say "thanks DNG" or you are using my signature ;)

just kidding...

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top