ASP Hosting sale!
Double disk space and transfer for FREE!
Limited time offer! Act Now!

aspdev | articles | tutorials | forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ASP page is being cached...

 
Post new topic   Reply to topic    ASPdev.org Forum Index -> ASP programming
View previous topic :: View next topic  
Author Message
HoldOn



Joined: 21 Oct 2004
Posts: 2

PostPosted: Thu Oct 21, 2004 2:04 pm    Post subject: ASP page is being cached... Reply with quote

I wrote ASP page, which displays dynamic info and has a couple of links on it. If you click any of the links and go to a different page and then click the back browser button, the first page is not being refreshed. How can avoid that?
Back to top
View user's profile Send private message
administrator
Site Admin


Joined: 01 Oct 2004
Posts: 183

PostPosted: Thu Oct 21, 2004 2:11 pm    Post subject: Reply with quote

The best you can do is to add the following code at the top of your ASP page:

Code:

<%
Response.Expires = -1
Response.AddHeader "Pragma", "no-cache"
Response.AddHeader "cache-control", "no-store"
%>


_________________
Peter
ASP & ASP.NET Articles and Tutorials
Back to top
View user's profile Send private message
HoldOn



Joined: 21 Oct 2004
Posts: 2

PostPosted: Thu Oct 21, 2004 3:48 pm    Post subject: Reply with quote

Thanks,

I'll try it later today.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ASPdev.org Forum Index -> ASP programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group

SQL Tutorial