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

Cache or Refresh

Status
Not open for further replies.

corneI

Programmer
May 5, 2003
18
ZA
[sadeyes]
I'am busy with a ASP page that contains href's to pdf's.
I just need to know how I can refresh the page when the user clicks the back button after viewing a pdf??
Because the pdf's get updated quite often and the user needs to only see the most up to date pdf's.
I have tried the following to prevent the users browser from cacheing but to no availe:

<%Response.Expires = 15
Response.ExpiresAbsolute = Now() - 2
Response.AddHeader &quot;pragma&quot;,&quot;no-cache&quot;
Response.AddHeader &quot;cache-control&quot;,&quot;private&quot;
Response.CacheControl = &quot;private&quot;%>

and

<meta http-equiv=&quot;Pragma&quot; content=&quot;no-cache&quot;>
<meta http-equiv=&quot;expires&quot; content=&quot;0&quot;>

which is basicly what is contained in thread333-575297

I know it's possible but how I don't know any more????

Thanks in advance for your help and my profined appoligies for my stupidity and English

Corne'
#-)
 
Don't worry!!!!!!!!!
Played around and found it.
All I had to do was set
<%Response.Expires = 0%>
<%Response.ExpiresAbsolute = Now() - 2%>
<%Response.AddHeader &quot;pragma&quot;,&quot;no-cache&quot;%>
<%Response.AddHeader &quot;cache-control&quot;,&quot;private&quot;%>
<%Response.CacheControl = &quot;no-cache&quot;%>

Corne'
#-)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top