Forum Home
Press F1
 
Thread ID: 29272 2003-01-15 08:17:00 ASP Cache Problem sc0ut (2899) Press F1
Post ID Timestamp Content User
114053 2003-01-15 08:17:00 ok so here is the dilemma

I created a page in ASP so that it wouldn't cache using this code

<%

Response.CacheControl="no-cache"
Response.AddHeader "Pragma","no-cache"
Response.Expires=0

%>

When I brows it in IIS it works BUT when I upload it to my Brinkster account it doesn't.

Is this a problem with my code or Brinkster??
If it is my code could you push me in the correct direction??
sc0ut (2899)
114054 2003-01-15 08:18:00 stupid thing posted twice sorry sc0ut (2899)
114055 2003-01-15 09:41:00 Try adding a few more lines:

<%
Response.Expires = 60
Response.Expiresabsolute = Now() -1
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"
%>

Can you let me know how this gets on? I've been told it works but haven't tested it so it would be interesting to know.
Heather P (163)
114056 2003-01-15 09:53:00 chears for that i don't know if it works or not because Brinkster is currently not letting me upload but i'll reply ASAP sc0ut (2899)
114057 2003-01-15 10:03:00 brinkser was working it just said it wasn't

and yes it worked

hay man thanks alot for that code, you saved me hours or searching online for it

thanks again
sc0ut (2899)
114058 2003-01-15 19:23:00 Thanks for the reply. The source for the code is reliable but there's nothing like confirmation. Heather P (163)
1