473,322 Members | 1,540 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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 1814
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Jerry McEwen | last post by:
I'm working on a web site for a domestic violence group and these groups always have an "escape" button, which is simply a link to another site. Whether I open this link in the same window, a new...
10
by: cosmic foo | last post by:
I have a page with about 100 images of about 10k each. where a typical img tag looks like this, <img src="item001.jpg" height="70" alt="" onMouseOver="showPic(this)" border="0"> Not all the...
3
by: feng | last post by:
In my ASP.Net app I have a aspx page that's called by an other page's client side JavaScript code. The problem is that the first time this page get loaded, it will be cached in the user's local...
0
by: Emily | last post by:
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,...
2
by: moi | last post by:
Hello, i have a Asp.net V2 login page with a password to enter. In some case, a user could forget and tell IE to save its password : How to prevent it ? Is there a way to disable it ? to block...
1
by: vikram | last post by:
How can I remove the cache of a page (cached with VaryByParam) for certain request params in code? i.e I want to remove cached page for some id=344, but want to keep page cached for some id = 1? ...
2
by: Simon Rigby | last post by:
Hi folks, ASP.NET2, Sql Server 2005 I have an app that executed a sql server query that produces an XML file used as the DateFile for an XMLDataSource bound to a TreeView. The bizarre thing...
0
by: Michael Nemtsev | last post by:
Hi, I need to stay on the current page even if user clicks "BACK" in browser. Opera is very stubborn in attemp of turning cached page off, and using current. Does anybody know the way how to say...
1
by: ABCL | last post by:
Hi All I have usercontrol on the page that I have added at design Time and cached it How can I remove the cached Usercontrol from outputcache. I want to remove cached version in session start...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.