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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirect to a fresh page?

Status
Not open for further replies.

Dashley

Programmer
Dec 5, 2002
925
US
Hi,

I'm using a response.redirect("mypage.asp") to go back to a previous page. I keep getting a cached page, How can I force it to give me a new/refreshed page.


Thanks

Dan
 
put this at the top of your ASP page...

Code:
<% 
    pStr = "private, no-cache, must-revalidate" 
    Response.ExpiresAbsolute = #2000-01-01# 
    Response.AddHeader "pragma", "no-cache" 
    Response.AddHeader "cache-control", pStr 
%>

-DNG
 
of course you need to change the Expires value to suit to your needs...

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top