View previous topic :: View next topic |
Author |
Message |
HoldOn
Joined: 21 Oct 2004 Posts: 2
|
Posted: Thu Oct 21, 2004 2:04 pm Post subject: ASP page is being cached... |
|
|
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 |
|
|
administrator Site Admin
Joined: 01 Oct 2004 Posts: 183
|
Posted: Thu Oct 21, 2004 2:11 pm Post subject: |
|
|
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 |
|
|
HoldOn
Joined: 21 Oct 2004 Posts: 2
|
Posted: Thu Oct 21, 2004 3:48 pm Post subject: |
|
|
Thanks,
I'll try it later today. |
|
Back to top |
|
|
|
|
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
|