469,327 Members | 1,242 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,327 developers. It's quick & easy.

remove cached page in browser

I have three asp pages. The initial page is login.asp, it goes to page hello.asp. And hello.asp goes to page another.asp. If it goes back from hello.asp to login.asp, then in Internet Explorer, clicking on Back, the cache of the page hello.asp has been removed, which is the effect that I want. If it goes back from another.asp to login.asp, and then in Internet Explorer, clicking on Back, the page another.asp still remains. The top of asp codes for hello.asp and another.asp are the same:response.expires=0
response.expiresabsolute=now()-1
response.addheader "pragma","no-cache"
response.addheader "cache-control","private"
response.cachecontrol="no-cache"
session("permission")=true
response.buffer=true
Please tell me how I can let another.asp not being cached in browser. Thanks in advance.
Jan 16 '06 #1
3 1668
wrote on 16 jan 2006 in microsoft.public.inetserver.asp.general:
I have three asp pages. The initial page is login.asp, it goes to page
hello.asp. And hello.asp goes to page another.asp. If it goes back
from hello.asp to login.asp, then in Internet Explorer, clicking on
Back, the cache of the page hello.asp has been removed, which is the
effect that I want. If it goes back from another.asp to login.asp, and
then in Internet Explorer, clicking on Back, the page another.asp
still remains. The top of asp codes for hello.asp and another.asp are
the same:response.expires=0 response.expiresabsolute=now()-1
response.addheader "pragma","no-cache"
response.addheader "cache-control","private"
response.cachecontrol="no-cache"
session("permission")=true
response.buffer=true
Please tell me how I can let another.asp not being cached in browser.
Thanks in advance.


response.expires=0 works on some, perhaps most browsers,
IF the server UTC time and client UTC time are more or less synchronous.

Better try:

response.expires=-1000

However no approach is 100% fool proof,
so better have some serverside coded response to a resubmit.

If .... then response.write "What, again?"
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jan 16 '06 #2
Hi Evertjan

It does not work. What is your email address? I cannot find it. I would like to send you the pages to ask you to have a look. Thanks.

Regards

Emily
Jan 16 '06 #3
wrote on 16 jan 2006 in microsoft.public.inetserver.asp.general:
It does not work. What is your email address? I cannot find it. I
would like to send you the pages to ask you to have a look. Thanks.


No please, advice in a common NG effort.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jan 16 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Jerry McEwen | last post: by
10 posts views Thread by cosmic foo | last post: by
1 post views Thread by vikram | last post: by
2 posts views Thread by Simon Rigby | last post: by
reply views Thread by listenups61195 | last post: by
reply views Thread by Purva khokhar | last post: by
reply views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.