Jun 12, 2002 #1 saw15 Technical User Jan 24, 2001 468 US Good day, Working with multiple asp pages, I need to know the best way to keep a page from caching to the browser. New to asp so any type of example would be very helpful. Thanks in advance.
Good day, Working with multiple asp pages, I need to know the best way to keep a page from caching to the browser. New to asp so any type of example would be very helpful. Thanks in advance.
Jun 12, 2002 #2 tlhawkins Programmer Dec 28, 2000 797 US Hi saweens Here is a way to do it with all ASP you can put this in a file and include it at the top of any page that you don't want to cache. <% Response.Expires = 15 Response.ExpiresAbsolute = Now() - 1 Response.AddHeader "pragma","no-cache" Response.AddHeader "cache-control","private" Response.CacheControl = "no-cache" %> for what it is worth I believe I got this code from user vasah20. Hope it helps you also. Upvote 0 Downvote
Hi saweens Here is a way to do it with all ASP you can put this in a file and include it at the top of any page that you don't want to cache. <% Response.Expires = 15 Response.ExpiresAbsolute = Now() - 1 Response.AddHeader "pragma","no-cache" Response.AddHeader "cache-control","private" Response.CacheControl = "no-cache" %> for what it is worth I believe I got this code from user vasah20. Hope it helps you also.
Jun 12, 2002 #3 cuedog Programmer Jun 6, 2002 5 US It can also be put in a meta tag. <meta http-equiv="pragma" content="no-cache"> Upvote 0 Downvote